Sha256: f6ee0af7137c0c3559c7efd519658d04a4907485c14da791149f93603b85d4d4

Contents?: true

Size: 487 Bytes

Versions: 17

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true
module ONEAccess
  module Error
    class APIError < StandardError
      attr_reader :http_status_code
      attr_reader :api_status_code
      attr_reader :api_status_message

      def initialize(http_status_code, api_status_code, api_status_message)
        @http_status_code   = http_status_code
        @api_status_code    = api_status_code
        @api_status_message = api_status_message
        super(api_status_message)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
oneaccess-0.4.4 lib/oneaccess/error/api_error.rb
oneaccess-0.4.3 lib/oneaccess/error/api_error.rb
oneaccess-0.4.2 lib/oneaccess/error/api_error.rb
oneaccess-0.4.1 lib/oneaccess/error/api_error.rb
oneaccess-0.4.0 lib/oneaccess/error/api_error.rb
oneaccess-0.3.0 lib/oneaccess/error/api_error.rb
oneaccess-0.2.0 lib/oneaccess/error/api_error.rb
oneaccess-0.1.9 lib/oneaccess/error/api_error.rb
oneaccess-0.1.8 lib/oneaccess/error/api_error.rb
oneaccess-0.1.7 lib/oneaccess/error/api_error.rb
oneaccess-0.1.6 lib/oneaccess/error/api_error.rb
oneaccess-0.1.5 lib/oneaccess/error/api_error.rb
oneaccess-0.1.4 lib/oneaccess/error/api_error.rb
oneaccess-0.1.3 lib/oneaccess/error/api_error.rb
oneaccess-0.1.2 lib/oneaccess/error/api_error.rb
oneaccess-0.1.1 lib/oneaccess/error/api_error.rb
oneaccess-0.1.0 lib/oneaccess/error/api_error.rb