Exception: PostFinanceCheckoutSdkException
- Inherits:
-
StandardError
- Object
- StandardError
- PostFinanceCheckoutSdkException
- Defined in:
- lib/postfinancecheckout-ruby-sdk/postfinancecheckout_sdk_exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ PostFinanceCheckoutSdkException
constructor
A new instance of PostFinanceCheckoutSdkException.
Constructor Details
#initialize(code, message) ⇒ PostFinanceCheckoutSdkException
Returns a new instance of PostFinanceCheckoutSdkException.
54 55 56 57 58 |
# File 'lib/postfinancecheckout-ruby-sdk/postfinancecheckout_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/postfinancecheckout-ruby-sdk/postfinancecheckout_sdk_exception.rb', line 52 def code @code end |