Exception: Darwinex::Api::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/darwinex/api/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, response: nil) ⇒ Error

Returns a new instance of Error.



9
10
11
12
# File 'lib/darwinex/api/error.rb', line 9

def initialize(msg, response: nil)
  @response = response
  super(msg)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/darwinex/api/error.rb', line 7

def response
  @response
end