Exception: MasterCard::Core::Exceptions::NotAllowedException
- Inherits:
-
APIException
- Object
- StandardError
- APIException
- MasterCard::Core::Exceptions::NotAllowedException
- Defined in:
- lib/mastercard/core/exceptions.rb
Overview
NotAllowedException
Instance Method Summary collapse
-
#initialize(message = nil, status = nil, error_data = nil) ⇒ NotAllowedException
constructor
Exception when a request was not allowed.
Methods inherited from APIException
#describe, #getErrorCode, #getErrorData, #getMessage, #getStatus, #to_s
Constructor Details
#initialize(message = nil, status = nil, error_data = nil) ⇒ NotAllowedException
Exception when a request was not allowed.
260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/mastercard/core/exceptions.rb', line 260 def initialize(=nil,status=nil,error_data=nil) if status.nil? status = 403 end #Call the base class constructor super(,status,error_data) end |