class HyperTrack::Error
Attributes
code[R]
Public Class Methods
defined_codes()
click to toggle source
# File lib/hypertrack/errors/hypertrack_errors.rb, line 6 def self.defined_codes { 400 => HyperTrack::InvalidParameters, 401 => HyperTrack::InvalidAPIKey, 402 => HyperTrack::NoFreeCreditsLeft, 403 => HyperTrack::AccessForbidden, 404 => HyperTrack::ResourceNotFound, 405 => HyperTrack::MethodNotAllowed, 406 => HyperTrack::FormatNotAcceptable, 410 => HyperTrack::ResourceRemovedFromServer, 429 => HyperTrack::RateLimitExceeded, 500 => HyperTrack::InternalServerError, 502 => HyperTrack::BadGateway, 503 => HyperTrack::ServiceTemporarilyUnavailable, 504 => HyperTrack::GatewayTimeout } end
new(message, code=nil)
click to toggle source
Calls superclass method
# File lib/hypertrack/errors/hypertrack_errors.rb, line 24 def initialize(message, code=nil) @code = code super(message) end