Exception: Faraday::NilStatusError
- Inherits:
-
ServerError
- Object
- StandardError
- Error
- ServerError
- Faraday::NilStatusError
- Defined in:
- lib/faraday/error.rb
Overview
Raised by Faraday::Response::RaiseError in case of a nil status in response.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(exc, response = nil) ⇒ NilStatusError
constructor
A new instance of NilStatusError.
Methods inherited from Error
#backtrace, #inspect, #response_body, #response_headers, #response_status
Constructor Details
#initialize(exc, response = nil) ⇒ NilStatusError
Returns a new instance of NilStatusError.
144 145 146 147 |
# File 'lib/faraday/error.rb', line 144 def initialize(exc, response = nil) exc_msg_and_response!(exc, response) super('http status could not be derived from the server response') end |