Exception: MasterCard::Core::Exceptions::ObjectNotFoundException
- Inherits:
- 
      APIException
      
        - Object
- StandardError
- APIException
- MasterCard::Core::Exceptions::ObjectNotFoundException
 
- Defined in:
- lib/mastercard/core/exceptions.rb
Overview
ObjectNotFoundException
Instance Method Summary collapse
- 
  
    
      #initialize(message = nil, status = nil, error_data = nil)  ⇒ ObjectNotFoundException 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Exception raised when the endpoint does not exist. 
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(=nil,status=nil,error_data=nil) if status.nil? status = 404 end #Call the base class constructor super(,status,error_data) end |