D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
td-client-0.8.85
/
lib
/
td
/
client
/
Filename :
api_error.rb
back
Copy
module TreasureData class ParameterValidationError < StandardError end # Generic API error class APIError < StandardError attr_reader :api_backtrace def initialize(error_message = nil, api_backtrace = nil) super(error_message) @api_backtrace = api_backtrace == '' ? nil : api_backtrace end end # 401 API errors class AuthError < APIError end # 403 API errors, used for database permissions class ForbiddenError < APIError end # 409 API errors class AlreadyExistsError < APIError attr_reader :conflicts_with def initialize(error_message = nil, api_backtrace = nil, conflicts_with=nil) super(error_message, api_backtrace) @conflicts_with = conflicts_with end end # 404 API errors class NotFoundError < APIError end end