Exception: CheckoutSdk::CheckoutApiException
- Inherits:
-
CheckoutException
- Object
- StandardError
- CheckoutException
- CheckoutSdk::CheckoutApiException
- Defined in:
- lib/checkout_sdk/error.rb
Instance Attribute Summary collapse
-
#error_details ⇒ Object
readonly
Returns the value of attribute error_details.
-
#http_metadata ⇒ Object
readonly
Returns the value of attribute http_metadata.
Instance Method Summary collapse
-
#initialize(response, message = nil) ⇒ CheckoutApiException
constructor
A new instance of CheckoutApiException.
Constructor Details
#initialize(response, message = nil) ⇒ CheckoutApiException
Returns a new instance of CheckoutApiException.
21 22 23 24 25 |
# File 'lib/checkout_sdk/error.rb', line 21 def initialize(response, = nil) @http_metadata = CheckoutUtils.(response) @error_details = parse_error_details(.body) super( || ) end |
Instance Attribute Details
#error_details ⇒ Object (readonly)
Returns the value of attribute error_details.
19 20 21 |
# File 'lib/checkout_sdk/error.rb', line 19 def error_details @error_details end |
#http_metadata ⇒ Object (readonly)
Returns the value of attribute http_metadata.
19 20 21 |
# File 'lib/checkout_sdk/error.rb', line 19 def @http_metadata end |