Exception: Twocheckout::TwocheckoutError
- Inherits:
-
StandardError
- Object
- StandardError
- Twocheckout::TwocheckoutError
- Defined in:
- lib/twocheckout/twocheckout_error.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(message, code = nil) ⇒ TwocheckoutError
constructor
A new instance of TwocheckoutError.
Constructor Details
#initialize(message, code = nil) ⇒ TwocheckoutError
Returns a new instance of TwocheckoutError.
6 7 8 9 |
# File 'lib/twocheckout/twocheckout_error.rb', line 6 def initialize(, code = nil) @message = @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/twocheckout/twocheckout_error.rb', line 4 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/twocheckout/twocheckout_error.rb', line 3 def @message end |