Exception: MasterCard::Core::Exceptions::AuthenticationException

Inherits:
APIException
  • Object
show all
Defined in:
lib/mastercard/core/exceptions.rb

Overview

AuthenticationException

Instance Method Summary collapse

Methods inherited from APIException

#describe, #getErrorCode, #getErrorData, #getMessage, #getStatus, #to_s

Constructor Details

#initialize(message = nil, status = nil, error_data = nil) ⇒ AuthenticationException

Exception raised where there are problems authenticating a request.



162
163
164
165
166
167
168
169
170
171
# File 'lib/mastercard/core/exceptions.rb', line 162

def initialize(message=nil,status=nil,error_data=nil)


  if status.nil?
      status = 401
  end

  #Call the base class constructor
  super(message,status,error_data)
end