Exception: Blockchain0xX402::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/blockchain0x_x402/errors.rb

Direct Known Subclasses

ClientError, WireError

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  super("#{code}: #{message}")
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



14
15
16
# File 'lib/blockchain0x_x402/errors.rb', line 14

def code
  @code
end