Sha256: b77f054533fa479eaa3e0ca2eab1bbd38bc98084bfa50c0abd3074435ee32a43

Contents?: true

Size: 483 Bytes

Versions: 2

Compression:

Stored size: 483 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

2 entries across 2 versions & 1 rubygems

Version Path
oneaccess-1.3.1 lib/oneaccess/error/api_error.rb
oneaccess-1.3.0 lib/oneaccess/error/api_error.rb