Sha256: 038a11e6fe4d17a51297290d2426cfc3c7a32212dd2f259a8c6c59a60a4a85f9

Contents?: true

Size: 424 Bytes

Versions: 2

Compression:

Stored size: 424 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
access-2.0.1 lib/access/error.rb
access-2.0.0 lib/access/error.rb