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