Exception: Blockchain0xX402::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Blockchain0xX402::Error
- Defined in:
- lib/blockchain0x_x402/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message) ⇒ Error
Returns a new instance of Error.
16 17 18 19 |
# File 'lib/blockchain0x_x402/errors.rb', line 16 def initialize(code, ) super("#{code}: #{}") @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
14 15 16 |
# File 'lib/blockchain0x_x402/errors.rb', line 14 def code @code end |