Exception: Payassist::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Payassist::Error
- Defined in:
- lib/payassist/errors.rb
Overview
Standard API error
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code) ⇒ Error
Returns a new instance of Error.
10 11 12 13 14 |
# File 'lib/payassist/errors.rb', line 10 def initialize(, code) @code = code @data = super("Error code #{code} #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/payassist/errors.rb', line 8 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/payassist/errors.rb', line 8 def data @data end |