Exception: OandaApiV20::RequestError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/oanda_api_v20/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, options = {}) ⇒ RequestError

Returns a new instance of RequestError.



8
9
10
11
12
# File 'lib/oanda_api_v20/exceptions.rb', line 8

def initialize(message = nil, options = {})
  @original_exception = options[:original_exception]
  @response           = options[:response]
  super(message)
end

Instance Attribute Details

#original_exceptionObject (readonly)

Returns the value of attribute original_exception.



6
7
8
# File 'lib/oanda_api_v20/exceptions.rb', line 6

def original_exception
  @original_exception
end

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/oanda_api_v20/exceptions.rb', line 6

def response
  @response
end