Exception: Ferrum::PendingConnectionsError
- Inherits:
-
StatusError
- Object
- StandardError
- Error
- StatusError
- Ferrum::PendingConnectionsError
- Defined in:
- lib/ferrum/errors.rb
Instance Attribute Summary collapse
-
#pendings ⇒ Object
readonly
Returns the value of attribute pendings.
Instance Method Summary collapse
-
#initialize(url, pendings = []) ⇒ PendingConnectionsError
constructor
A new instance of PendingConnectionsError.
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 = "Request to #{url} reached server, but there are still pending connections: #{pendings.join(', ')}" super(url, ) end |
Instance Attribute Details
#pendings ⇒ Object (readonly)
Returns the value of attribute pendings.
19 20 21 |
# File 'lib/ferrum/errors.rb', line 19 def pendings @pendings end |