Sha256: f0e110d8ff6e4ad9caa7e42179327c0db84c0674642e9547515f5ec506b2f55f

Contents?: true

Size: 499 Bytes

Versions: 48

Compression:

Stored size: 499 Bytes

Contents

module Access
  class Error
    class AuthenticationError < StandardError; end
    class NoAccessToken < AuthenticationError; end
    class InvalidResponseFormat < TypeError; end
    class Timeout < Timeout::Error ; end
    class NoData < EOFError; 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

48 entries across 48 versions & 1 rubygems

Version Path
access-2.0.22 lib/access/error.rb
access-2.0.21 lib/access/error.rb
access-2.0.20 lib/access/error.rb
access-2.0.19 lib/access/error.rb
access-2.0.18 lib/access/error.rb
access-2.0.17 lib/access/error.rb
access-2.0.15 lib/access/error.rb
access-2.0.14 lib/access/error.rb