Sha256: 384a971a0d62307690467c47ebcaf37a36c12845be3aec5b83c52ecb0e1e518d
Contents?: true
Size: 771 Bytes
Versions: 1
Compression:
Stored size: 771 Bytes
Contents
module ApiClient module Errors class ApiClientError < StandardError def initialize(message = nil, request = nil, response = nil) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api_client-0.5.9 | lib/api_client/errors.rb |