Sha256: f206a76e041099888200f9a06a2a66ebd93b478d65d70fab58b1926eb4d71b03

Contents?: true

Size: 732 Bytes

Versions: 4

Compression:

Stored size: 732 Bytes

Contents

module Heroku
  class API
    module Errors
      class Error < StandardError; end

      class ErrorWithResponse < Error
        attr_reader :response

        def initialize(message, response)
          super message
          @response = response
        end
      end

      class Unauthorized < ErrorWithResponse; end
      class VerificationRequired < ErrorWithResponse; end
      class Forbidden < ErrorWithResponse; end
      class NotFound < ErrorWithResponse; end
      class Timeout < ErrorWithResponse; end
      class Locked < ErrorWithResponse; end
      class RateLimitExceeded < ErrorWithResponse; end
      class RequestFailed < ErrorWithResponse; end
      class NilApp < ErrorWithResponse; end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
heroku-api-0.3.16 lib/heroku/api/errors.rb
heroku-api-0.3.15 lib/heroku/api/errors.rb
heroku-api-0.3.14 lib/heroku/api/errors.rb
heroku-api-0.3.13 lib/heroku/api/errors.rb