Module: TDAmeritrade::Error

Included in:
Client
Defined in:
lib/tdameritrade/error.rb

Defined Under Namespace

Classes: NotAuthorizedError, RateLimitError, TDAmeritradeError

Class Method Summary collapse

Class Method Details

.gem_error(message) ⇒ Object



14
15
16
17
18
# File 'lib/tdameritrade/error.rb', line 14

def gem_error(message)
  error = TDAmeritradeError.new(message)
  error.set_backtrace(caller)
  raise error
end