Exception: Trader::BackendError

Inherits:
Error
  • Object
show all
Defined in:
lib/trade-o-matic/errors.rb

Direct Known Subclasses

NotSupportedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_backend, _message) ⇒ BackendError

Returns a new instance of BackendError.



9
10
11
12
# File 'lib/trade-o-matic/errors.rb', line 9

def initialize(_backend, _message)
  super "#{_backend}: #{_message}"
  @backend = _backend
end

Instance Attribute Details

#backendObject (readonly)

Returns the value of attribute backend.



7
8
9
# File 'lib/trade-o-matic/errors.rb', line 7

def backend
  @backend
end