Exception: OandaApiV20::RequestError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OandaApiV20::RequestError
- Defined in:
- lib/oanda_api_v20/exceptions.rb
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message = nil, options = {}) ⇒ RequestError
constructor
A new instance of RequestError.
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( = nil, = {}) @original_exception = [:original_exception] @response = [:response] super() end |
Instance Attribute Details
#original_exception ⇒ Object (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 |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/oanda_api_v20/exceptions.rb', line 6 def response @response end |