Sha256: 23e0796b6a1a0fe6b18d556d5a1acb2dd83a30a69be2744b825afdd4d20331da
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 Bytes
Contents
module Loopiator class ApiError < StandardError; end class AuthError < ApiError def message "You've supplied invalid authentication credentials. Please check your credentials and then try again." end end class RateLimitError < ApiError def message "You've reached the number of allowed API-requests within the given time period. Please wait a bit and then try again." end end class InvalidParameterError < ApiError def message "One or several parameters have invalid parameters supplied." end end class UnknownError < ApiError def message "An unknown error occurred while trying to request data from the API." end end class ConnectionError < ApiError def message "An unknown connection error occurred while trying to connect to the API." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loopiator-0.1.0 | lib/loopiator/errors.rb |