CIMOperationFailedException Class Reference

#include <ProviderException.h>

Inheritance diagram for CIMOperationFailedException:
CIMException Exception CIMAccessDeniedException CIMInvalidParameterException CIMMethodNotFoundException CIMNotSupportedException CIMObjectAlreadyExistsException CIMObjectNotFoundException CIMPropertyNotFoundException

Public Member Functions

 CIMOperationFailedException (const String &message)
 
- Public Member Functions inherited from CIMException
 CIMException (CIMStatusCode code=CIM_ERR_SUCCESS, const String &message=String::EMPTY)
 
 CIMException (CIMStatusCode code, const String &message, const CIMInstance &instance)
 
 CIMException (CIMStatusCode code, const String &message, const Array< CIMInstance > &instances)
 
 CIMException (const CIMException &cimException)
 
CIMExceptionoperator= (const CIMException &cimException)
 
virtual ~CIMException ()
 
CIMStatusCode getCode () const
 
- Public Member Functions inherited from Exception
 Exception (const String &message)
 
 Exception (const Exception &exception)
 
virtual ~Exception ()
 
Exceptionoperator= (const Exception &exception)
 
virtual const StringgetMessage () const
 

Protected Member Functions

 CIMOperationFailedException (const CIMStatusCode code, const String &message)
 
- Protected Member Functions inherited from Exception
 Exception ()
 

Additional Inherited Members

- Protected Attributes inherited from Exception
ExceptionRep * _rep
 

Detailed Description

Base class for exceptions thrown by providers.

The CIMOperationFailedException class is an exception class, and is the base class from which exceptions that can be thrown by providers are derived. It may also be thrown directly by providers to signal a generic operation failure.

Providers do not throw every possible exception that clients may receive from the CIM Server. The exceptions which may be thrown by providers are a subset of the possible exceptions, and are described in their respective sections.

All of the provider exceptions accept a message argument that allows the provider to send additional text in the string that will be returned to the client. While localization of text is not currently supported, it is recommended that text strings be structured in message catalogs to facilitate future localization.

Constructor & Destructor Documentation

◆ CIMOperationFailedException() [1/2]

CIMOperationFailedException::CIMOperationFailedException ( const String message)

Constructs a CIMOperationFailedException to indicate a generic operation failure. This exception corresponds to the CIM_ERR_FAILED status code.

Parameters
messageA message String containing an error description

◆ CIMOperationFailedException() [2/2]

CIMOperationFailedException::CIMOperationFailedException ( const CIMStatusCode  code,
const String message 
)
protected

Constructs a CIMOperationFailedException with a specified status code and error description.

Parameters
codeA CIMStatusCode containing a DMTF defined status code specifying the type of the error
messageA message String containing an error description

The documentation for this class was generated from the following file: