module Eloquant::Errors
Constants
- AuthorizationError
- BulkExportCreationError
- EmptyResponse
- RESPONSE_CODE_TO_ERROR
- Unknown
Public Class Methods
create_class()
click to toggle source
# File lib/eloquant/errors.rb, line 6 def self.create_class Class.new(Error) end
find_by_response_code(response_code)
click to toggle source
# File lib/eloquant/errors.rb, line 21 def self.find_by_response_code(response_code) const_get(RESPONSE_CODE_TO_ERROR.fetch(response_code, "Error")) end