Exception: MasterCard::Core::Exceptions::NotAllowedException

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

Overview

NotAllowedException

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) ⇒ 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(message=nil,status=nil,error_data=nil)


  if status.nil?
      status = 403
  end

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

end