Sha256: d9e74c0e736a1cad6481e6318f57e00587ceb6552e2b61f72a49ca146308086f
Contents?: true
Size: 757 Bytes
Versions: 4
Compression:
Stored size: 757 Bytes
Contents
module ApiClient module Errors class ApiClientError < StandardError def initialize(message=nil, request, 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 ServerError < ApiClientError; end class UnprocessableEntity < ApiClientError; end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
api_client-0.5.7 | lib/api_client/errors.rb |
api_client-0.5.6 | lib/api_client/errors.rb |
api_client-0.5.5 | lib/api_client/errors.rb |
api_client-0.5.4 | lib/api_client/errors.rb |