Exception: TreasureData::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- TreasureData::APIError
- Defined in:
- lib/td/client/api_error.rb
Overview
Generic API error
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_backtrace ⇒ Object
readonly
Returns the value of attribute api_backtrace.
Instance Method Summary collapse
-
#initialize(error_message = nil, api_backtrace = nil) ⇒ APIError
constructor
A new instance of APIError.
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( = nil, api_backtrace = nil) super() @api_backtrace = api_backtrace == '' ? nil : api_backtrace end |
Instance Attribute Details
#api_backtrace ⇒ Object (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 |