Exception: TBK::Error
- Inherits:
-
StandardError
- Object
- StandardError
- TBK::Error
- Defined in:
- lib/tbk/errors.rb
Direct Known Subclasses
CommerceError, Webpay::EncryptionError, Webpay::PaymentError
Instance Attribute Summary collapse
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(msg, origin = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, origin = nil) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'lib/tbk/errors.rb', line 4 def initialize(msg, origin=nil) super(msg) @origin = origin end |
Instance Attribute Details
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
3 4 5 |
# File 'lib/tbk/errors.rb', line 3 def origin @origin end |