Exception: Justifi::InvalidHttpResponseError

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

Instance Attribute Summary

Attributes inherited from Error

#error_details, #response_code

Instance Method Summary collapse

Constructor Details

#initialize(response:) ⇒ InvalidHttpResponseError

Returns a new instance of InvalidHttpResponseError.



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

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