Exception: Explicit::Request::InvalidResponseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Explicit::Request::InvalidResponseError
- Defined in:
- lib/explicit/request/invalid_response_error.rb
Instance Method Summary collapse
-
#initialize(response, error) ⇒ InvalidResponseError
constructor
A new instance of InvalidResponseError.
Constructor Details
#initialize(response, error) ⇒ InvalidResponseError
Returns a new instance of InvalidResponseError.
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/explicit/request/invalid_response_error.rb', line 4 def initialize(response, error) super <<-TXT Response did not match expected spec. Got: #{response.inspect} Expected: #{error.inspect} TXT end |