Exception: ViaBTC::Error::ExchangeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/viabtc/error.rb

Overview

ViaBTC Exchange Server Base Error Class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ExchangeError

Returns a new instance of ExchangeError.



13
14
15
16
17
# File 'lib/viabtc/error.rb', line 13

def initialize(response)
  @code = response["error"]["code"]
  @message = response["error"]["message"]
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



12
13
14
# File 'lib/viabtc/error.rb', line 12

def response
  @response
end