Exception: GatecoinAPI::Client::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gatecoin-api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code, raw) ⇒ ApiError

Returns a new instance of ApiError.



16
17
18
19
# File 'lib/gatecoin-api/client.rb', line 16

def initialize(message, code, raw)
  @raw = raw
  super "#{message} [#{code}]"
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



14
15
16
# File 'lib/gatecoin-api/client.rb', line 14

def raw
  @raw
end