Exception: PostFinanceCheckoutSdkException
- Inherits:
-
StandardError
- Object
- StandardError
- PostFinanceCheckoutSdkException
- Defined in:
- lib/postfinancecheckout-ruby-sdk/postfinancecheckout_sdk_exception.rb
Overview
# PostFinance Ruby SDK # # This library allows to interact with the PostFinance payment service. # # Copyright owner: Wallee AG # Website: www.postfinance.ch/en/private.html # Developer email: [email protected] # # Licensed under the Apache License, Version 2.0 (the “License”); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an “AS IS” BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License.
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.
26 27 28 29 |
# File 'lib/postfinancecheckout-ruby-sdk/postfinancecheckout_sdk_exception.rb', line 26 def initialize(code, ) @code = code super("Error code: #{code}. #{message}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
24 25 26 |
# File 'lib/postfinancecheckout-ruby-sdk/postfinancecheckout_sdk_exception.rb', line 24 def code @code end |