Exception: MasterCard::Core::Exceptions::SystemException

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

Overview

SystemException

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) ⇒ SystemException

Exception when there was a system error processing a request.



281
282
283
284
285
286
287
288
289
290
# File 'lib/mastercard/core/exceptions.rb', line 281

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


  if status.nil?
      status = 500
  end

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