Exception: WalleeSdkException
- Inherits:
-
StandardError
- Object
- StandardError
- WalleeSdkException
- Defined in:
- lib/wallee-ruby-sdk/wallee_sdk_exception.rb
Overview
# Wallee AG Ruby SDK # # This library allows to interact with the Wallee AG payment service. # # Copyright owner: Wallee AG # Website: en.wallee.com # 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) ⇒ WalleeSdkException
constructor
A new instance of WalleeSdkException.
Constructor Details
#initialize(code, message) ⇒ WalleeSdkException
Returns a new instance of WalleeSdkException.
26 27 28 29 |
# File 'lib/wallee-ruby-sdk/wallee_sdk_exception.rb', line 26 def initialize(code, ) @code = code super("Error code: #{code}. #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
24 25 26 |
# File 'lib/wallee-ruby-sdk/wallee_sdk_exception.rb', line 24 def code @code end |