Sha256: 904fd6b5634fc14035887bb6e9410f70a892e59a31755f250b48c934c409006d
Contents?: true
Size: 1.29 KB
Versions: 25
Compression:
Stored size: 1.29 KB
Contents
module EBSCO module EDS class Error < StandardError attr_reader :fault def initialize(errors = nil) if errors @fault = errors super(errors[:error_body]) end end end # raised with passing in invalid or unsupported parameter class InvalidParameter < StandardError; end # raised when attempting an action that is invalid/unsupported class ApiError < StandardError; end # Raised when trying an action that is not supported class NotImplemented < StandardError; end # HTTP related errors # raised when EDS returns the HTTP status code 400 class BadRequest < Error; end # raised when EDS returns the HTTP status code 401 class Unauthorized < Error; end # raised when EDS returns the HTTP status code 403 class Forbidden < Error; end # raised when EDS returns the HTTP status code 404 class NotFound < Error; end # Raised when EDS returns the HTTP status code 429 class TooManyRequests < Error; end # Raised when EDS returns the HTTP status code 500 class InternalServerError < Error; end # Raised when EDS returns the HTTP status code 503 class ServiceUnavailable < Error; end # raised when connection fails class ConnectionFailed < Error; end end end
Version data entries
25 entries across 25 versions & 1 rubygems