Sha256: 14526ebb683791a540338602452c7a7cad4dc965a16a7ae52e010854499c0dae
Contents?: true
Size: 961 Bytes
Versions: 3
Compression:
Stored size: 961 Bytes
Contents
module ApiClient module Errors class ApiClientError < StandardError def initialize(message = nil, request = nil, response = nil) message ||= "Status code: #{response.status}" if response super(message) @request = request @response = response end attr_reader :request, :response end class ConnectionFailed < ApiClientError; end class Config < ApiClientError; end class Unauthorized < ApiClientError; end class Forbidden < ApiClientError; end class NotFound < ApiClientError; end class Redirect < ApiClientError; end class BadRequest < ApiClientError; end class Unsupported < ApiClientError; end class Conflict < ApiClientError; end class Gone < ApiClientError; end class ServerError < ApiClientError; end class UnprocessableEntity < ApiClientError; end class Locked < ApiClientError; end class TooManyRequests < ApiClientError; end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
api_client-0.5.25-java | lib/api_client/errors.rb |
api_client-0.5.25 | lib/api_client/errors.rb |
api_client-0.5.24 | lib/api_client/errors.rb |