Exception: FinchAPI::APIConnectionError
- Defined in:
- lib/finch-api/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
Attributes inherited from APIError
Instance Method Summary collapse
-
#initialize(url:, status: nil, body: nil, request: nil, response: nil, message: "Connection error.") ⇒ APIConnectionError
constructor
private
A new instance of APIConnectionError.
Constructor Details
#initialize(url:, status: nil, body: nil, request: nil, response: nil, message: "Connection error.") ⇒ APIConnectionError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of APIConnectionError.
58 59 60 61 62 63 64 65 66 67 |
# File 'lib/finch-api/errors.rb', line 58 def initialize( url:, status: nil, body: nil, request: nil, response: nil, message: "Connection error." ) super end |
Instance Attribute Details
#body ⇒ nil
2 3 4 |
# File 'lib/finch-api/errors.rb', line 2 def body @body end |
#status ⇒ nil
2 3 4 |
# File 'lib/finch-api/errors.rb', line 2 def status @status end |