Exception: Faraday::NilStatusError

Inherits:
ServerError show all
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

#response, #wrapped_exception

Instance Method Summary collapse

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.



129
130
131
132
# File 'lib/faraday/error.rb', line 129

def initialize(exc, response = nil)
  exc_msg_and_response!(exc, response)
  super('http status could not be derived from the server response')
end