Exception: WalleeSdkException
- Inherits:
-
StandardError
- Object
- StandardError
- WalleeSdkException
- Defined in:
- lib/wallee-ruby-sdk/wallee_sdk_exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ WalleeSdkException
constructor
A new instance of WalleeSdkException.
Constructor Details
#initialize(code, message) ⇒ WalleeSdkException
Returns a new instance of WalleeSdkException.
54 55 56 57 58 |
# File 'lib/wallee-ruby-sdk/wallee_sdk_exception.rb', line 54 def initialize(code, ) @code = code = "Error code: #{code[:code]}. #{}" super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
52 53 54 |
# File 'lib/wallee-ruby-sdk/wallee_sdk_exception.rb', line 52 def code @code end |