Exception: MastercardCoreSdk::Exceptions::SDKResponseError
- Inherits:
-
SDKBaseError
- Object
- RuntimeError
- SDKBaseError
- MastercardCoreSdk::Exceptions::SDKResponseError
- Defined in:
- lib/mastercard_core_sdk/exceptions/sdk_response_error.rb
Overview
Defines error to be raised with details in error object.
Instance Attribute Summary collapse
-
#errors_object ⇒ Object
Returns the value of attribute errors_object.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Attributes inherited from SDKBaseError
Instance Method Summary collapse
-
#initialize(args) ⇒ SDKResponseError
constructor
A new instance of SDKResponseError.
Constructor Details
#initialize(args) ⇒ SDKResponseError
Returns a new instance of SDKResponseError.
10 11 12 13 |
# File 'lib/mastercard_core_sdk/exceptions/sdk_response_error.rb', line 10 def initialize(args) @errors_object = args[:errors_object] @status_code = args[:status_code] end |
Instance Attribute Details
#errors_object ⇒ Object
Returns the value of attribute errors_object.
8 9 10 |
# File 'lib/mastercard_core_sdk/exceptions/sdk_response_error.rb', line 8 def errors_object @errors_object end |
#status_code ⇒ Object
Returns the value of attribute status_code.
8 9 10 |
# File 'lib/mastercard_core_sdk/exceptions/sdk_response_error.rb', line 8 def status_code @status_code end |