Exception: TreasureData::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/td/client/api_error.rb

Overview

Generic API error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_message = nil, api_backtrace = nil) ⇒ APIError

Returns a new instance of APIError.



10
11
12
13
# File 'lib/td/client/api_error.rb', line 10

def initialize(error_message = nil, api_backtrace = nil)
  super(error_message)
  @api_backtrace = api_backtrace == '' ? nil : api_backtrace
end

Instance Attribute Details

#api_backtraceObject (readonly)

Returns the value of attribute api_backtrace.



8
9
10
# File 'lib/td/client/api_error.rb', line 8

def api_backtrace
  @api_backtrace
end