Exception: Tappay::APIError
- Defined in:
- lib/tappay/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(code, message) ⇒ APIError
Returns a new instance of APIError.
14 15 16 17 18 |
# File 'lib/tappay/errors.rb', line 14 def initialize(code, ) @code = code @message = super("TapPay API Error (#{code}): #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
12 13 14 |
# File 'lib/tappay/errors.rb', line 12 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
12 13 14 |
# File 'lib/tappay/errors.rb', line 12 def @message end |