Exception: MasterCard::Core::Exceptions::AuthenticationException
- Inherits:
-
APIException
- Object
- StandardError
- APIException
- MasterCard::Core::Exceptions::AuthenticationException
- Defined in:
- lib/mastercard/core/exceptions.rb
Overview
AuthenticationException
Instance Method Summary collapse
-
#initialize(message = nil, status = nil, error_data = nil) ⇒ AuthenticationException
constructor
Exception raised where there are problems authenticating a request.
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(=nil,status=nil,error_data=nil) if status.nil? status = 401 end #Call the base class constructor super(,status,error_data) end |