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

Constructor Details

#initialize(_exc, response: nil) ⇒ NilStatusError

Returns a new instance of NilStatusError.



88
89
90
91
# File 'lib/faraday/error.rb', line 88

def initialize(_exc, response: nil)
  message = 'http status could not be derived from the server response'
  super(message, response)
end