Exception: MasterCard::Core::Exceptions::ObjectNotFoundException

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

Overview

ObjectNotFoundException

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

Exception raised when the endpoint does not exist.



143
144
145
146
147
148
149
150
151
152
# File 'lib/mastercard/core/exceptions.rb', line 143

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


  if status.nil?
      status = 404
  end

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