Exception: Justifi::InvalidHttpResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/justifi/justifi_error.rb

Instance Attribute Summary

Attributes inherited from Error

#response_code

Instance Method Summary collapse

Constructor Details

#initialize(response:) ⇒ InvalidHttpResponseError

Returns a new instance of InvalidHttpResponseError.



14
15
16
# File 'lib/justifi/justifi_error.rb', line 14

def initialize(response:)
  super(response.http_status, response.error_message)
end