Sha256: 37be5719e9614cb944027f633b79ed138c03e2aaa2e5e46f1b6810b7caf4a260

Contents?: true

Size: 607 Bytes

Versions: 12

Compression:

Stored size: 607 Bytes

Contents

module Chargify
  module Error

    class Base < StandardError
      attr_reader :response

      def initialize(response=nil)
        @response  = response
      end
    end

    class AccessDenied        < Base; end # 401 errors
    class Forbidden           < Base; end # 403 errors
    class BadRequest          < Base; end # 422 errors
    class NotFound            < Base; end # 404 errors
    class ServerError         < Base; end # 500 errors
    class GatewayTimeout      < Base; end # 504 errors
    class ConnectionFailed    < Base; end
    
    class UnexpectedResponse  < Base; end

  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
stefl-chargify-0.3.10 lib/chargify/error.rb
stefl-chargify-0.3.6 lib/chargify/error.rb
stefl-chargify-0.3.5 lib/chargify/error.rb
stefl-chargify-0.3.4 lib/chargify/error.rb
stefl-chargify-0.3.3 lib/chargify/error.rb
jsmestad-chargify-0.3.3 lib/chargify/error.rb
jsmestad-chargify-0.3.2.2 lib/chargify/error.rb
jsmestad-chargify-0.3.2.1 lib/chargify/error.rb
jsmestad-chargify-0.3.2 lib/chargify/error.rb
jsmestad-chargify-0.3.1 lib/chargify/error.rb
jsmestad-chargify-0.3.0 lib/chargify/error.rb
jsmestad-chargify-0.3.0.pre6 lib/chargify/error.rb