Exception: Ferrum::PendingConnectionsError

Inherits:
StatusError show all
Defined in:
lib/ferrum/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#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

Instance Attribute Details

#pendingsObject (readonly)

Returns the value of attribute pendings.



19
20
21
# File 'lib/ferrum/errors.rb', line 19

def pendings
  @pendings
end