Sha256: ab8e72c5d5e8c7e3e76e08c094c2d2bfeb193b5fd6d1f6f23eafefd0fcac88a4

Contents?: true

Size: 466 Bytes

Versions: 10

Compression:

Stored size: 466 Bytes

Contents

module Access
  class Error
    class AuthenticationError < StandardError; end
    class NoAccessToken < AuthenticationError; end
    class InvalidResponseFormat < TypeError; end
    class Timeout < Timeout::Error ; end

    attr_reader :message, :status_code, :status

    def initialize(response_status, response_code, response_message = nil)
      @status_code = response_code
      @status = response_status
      @message = response_message
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
access-2.0.13 lib/access/error.rb
access-2.0.11 lib/access/error.rb
access-2.0.10 lib/access/error.rb
access-2.0.9 lib/access/error.rb
access-2.0.8 lib/access/error.rb
access-2.0.7 lib/access/error.rb
access-2.0.5 lib/access/error.rb
access-2.0.4 lib/access/error.rb
access-2.0.3 lib/access/error.rb
access-2.0.2 lib/access/error.rb