Method: Ferrum::PendingConnectionsError#initialize

Defined in:
lib/ferrum/errors.rb

#initialize(url, pendings = []) ⇒ PendingConnectionsError

Returns a new instance of PendingConnectionsError.



21
22
23
24
25
26
27
# File 'lib/ferrum/errors.rb', line 21

def initialize(url, pendings = [])
  @pendings = pendings

  message = "Request to #{url} reached server, but there are still pending connections: #{pendings.join(', ')}"

  super(url, message)
end