version 1.28, 2006/11/14 18:34:55
|
version 1.29, 2008/06/26 17:46:59
|
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
/** | /** |
Parent class for exceptions thrown by providers. |
Base class for exceptions thrown by providers. |
| |
<p>The <tt>CIMOperationFailedException</tt> class is an exception class, | <p>The <tt>CIMOperationFailedException</tt> class is an exception class, |
and the parent class from which exceptions that can be thrown |
and is the base class from which exceptions that can be thrown |
by providers are derived. It may also be thrown directly by | by providers are derived. It may also be thrown directly by |
providers to signal a generic operation failure.</p> | providers to signal a generic operation failure.</p> |
| |
|
|
{ | { |
public: | public: |
/** | /** |
Generic operation failure. |
Constructs a CIMOperationFailedException to indicate a generic |
|
operation failure. This exception corresponds to the CIM_ERR_FAILED |
<p>This exception will cause a <tt>CIM_ERR_FAILED</tt> |
status code. |
status code to be returned to the client.</p> |
@param message A message String containing an error description |
*/ | */ |
CIMOperationFailedException(const String& message); | CIMOperationFailedException(const String& message); |
| |
|
|
#endif | #endif |
| |
protected: | protected: |
|
/** |
|
Constructs a CIMOperationFailedException with a specified status code |
|
and error description. |
|
@param code A CIMStatusCode containing a DMTF defined status code |
|
specifying the type of the error |
|
@param message A message String containing an error description |
|
*/ |
CIMOperationFailedException( | CIMOperationFailedException( |
const CIMStatusCode code, | const CIMStatusCode code, |
const String& message); | const String& message); |
|
|
}; | }; |
| |
/** | /** |
Cause a <tt>CIM_ERR_ACCESS_DENIED</tt> status code to be |
A CIMAccessDeniedException indicates an access permission error. |
returned to the client. |
This exception corresponds to the CIM_ERR_ACCESS_DENIED status code. |
*/ | */ |
class PEGASUS_PROVIDER_LINKAGE CIMAccessDeniedException | class PEGASUS_PROVIDER_LINKAGE CIMAccessDeniedException |
: public CIMOperationFailedException | : public CIMOperationFailedException |
{ | { |
public: | public: |
/// |
/** |
|
Constructs a CIMAccessDeniedException with a specified error message. |
|
@param message A message String containing an error description |
|
*/ |
CIMAccessDeniedException(const String& message); | CIMAccessDeniedException(const String& message); |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
|
|
}; | }; |
| |
/** | /** |
Cause a <tt>CIM_ERR_INVALID_PARAMETER</tt> status code to be |
A CIMInvalidParameterException indicates an error with an operation |
returned to the client. |
parameter. This exception corresponds to the CIM_ERR_INVALID_PARAMETER |
|
status code. |
*/ | */ |
class PEGASUS_PROVIDER_LINKAGE CIMInvalidParameterException | class PEGASUS_PROVIDER_LINKAGE CIMInvalidParameterException |
: public CIMOperationFailedException | : public CIMOperationFailedException |
{ | { |
public: | public: |
/// |
/** |
|
Constructs a CIMInvalidParameterException with a specified error |
|
message. |
|
@param message A message String containing an error description |
|
*/ |
CIMInvalidParameterException(const String& message); | CIMInvalidParameterException(const String& message); |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
|
|
| |
#if 0 | #if 0 |
/** | /** |
Cause a <tt>CIM_ERR_INVALID_CLASS</tt> status code to be |
A CIMInvalidClassException indicates a class was specified that does not |
returned to the client. |
exist. This exception corresponds to the CIM_ERR_INVALID_CLASS status |
|
code. |
*/ | */ |
class PEGASUS_PROVIDER_LINKAGE CIMInvalidClassException | class PEGASUS_PROVIDER_LINKAGE CIMInvalidClassException |
: public CIMOperationFailedException | : public CIMOperationFailedException |
{ | { |
public: | public: |
|
/** |
|
Constructs a CIMInvalidClassException with a specified error message. |
|
@param message A message String containing an error description |
|
*/ |
CIMInvalidClassException(const String& message); | CIMInvalidClassException(const String& message); |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
|
|
#endif | #endif |
| |
/** | /** |
Cause a <tt>CIM_ERR_NOT_FOUND</tt> status code to be |
A CIMObjectNotFoundException indicates that a requested object was not |
returned to the client. |
found. This exception corresponds to the CIM_ERR_NOT_FOUND status code. |
*/ | */ |
class PEGASUS_PROVIDER_LINKAGE CIMObjectNotFoundException | class PEGASUS_PROVIDER_LINKAGE CIMObjectNotFoundException |
: public CIMOperationFailedException | : public CIMOperationFailedException |
{ | { |
public: | public: |
/// |
/** |
|
Constructs a CIMObjectNotFoundException with a specified error message. |
|
@param message A message String containing an error description |
|
*/ |
CIMObjectNotFoundException(const String& message); | CIMObjectNotFoundException(const String& message); |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
|
|
}; | }; |
| |
/** | /** |
Cause a <tt>CIM_ERR_NOT_SUPPORTED</tt> status code to be |
A CIMNotSupportedException indicates that a requested operation is not |
returned to the client. |
supported. This exception corresponds to the CIM_ERR_NOT_SUPPORTED status |
|
code. |
*/ | */ |
class PEGASUS_PROVIDER_LINKAGE CIMNotSupportedException | class PEGASUS_PROVIDER_LINKAGE CIMNotSupportedException |
: public CIMOperationFailedException | : public CIMOperationFailedException |
{ | { |
public: | public: |
/// |
/** |
|
Constructs a CIMNotSupportedException with a specified error message. |
|
@param message A message String containing an error description |
|
*/ |
CIMNotSupportedException(const String& message); | CIMNotSupportedException(const String& message); |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
|
|
}; | }; |
| |
/** | /** |
Cause a <tt>CIM_ERR_ALREADY_EXISTS</tt> status code to be |
A CIMObjectAlreadyExistsException indicates that an operation could not be |
returned to the client. |
completed because a specified object already exists. This exception |
|
corresponds to the CIM_ERR_ALREADY_EXISTS status code. |
*/ | */ |
class PEGASUS_PROVIDER_LINKAGE CIMObjectAlreadyExistsException | class PEGASUS_PROVIDER_LINKAGE CIMObjectAlreadyExistsException |
: public CIMOperationFailedException | : public CIMOperationFailedException |
{ | { |
public: | public: |
/// |
/** |
|
Constructs a CIMObjectAlreadyExistsException with a specified error |
|
message. |
|
@param message A message String containing an error description |
|
*/ |
CIMObjectAlreadyExistsException(const String& message); | CIMObjectAlreadyExistsException(const String& message); |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
|
|
}; | }; |
| |
/** | /** |
Cause a <tt>CIM_ERR_NO_SUCH_PROPERTY</tt> status code to be |
A CIMPropertyNotFoundException indicates that a property was specified |
returned to the client. |
which does not exist. This exception corresponds to the |
|
CIM_ERR_NO_SUCH_PROPERTY status code. |
*/ | */ |
class PEGASUS_PROVIDER_LINKAGE CIMPropertyNotFoundException | class PEGASUS_PROVIDER_LINKAGE CIMPropertyNotFoundException |
: public CIMOperationFailedException | : public CIMOperationFailedException |
{ | { |
public: | public: |
/// |
/** |
|
Constructs a CIMPropertyNotFoundException with a specified error |
|
message. |
|
@param message A message String containing an error description |
|
*/ |
CIMPropertyNotFoundException(const String& message); | CIMPropertyNotFoundException(const String& message); |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
|
|
#if 0 | #if 0 |
// Query operations are not yet supported in Pegasus | // Query operations are not yet supported in Pegasus |
/** | /** |
Cause a <tt>CIM_ERR_INVALID_QUERY</tt> status code to be |
A CIMInvalidQueryException indicates that a query is not valid for a |
returned to the client. |
specified query language. This exception corresponds to the |
|
CIM_ERR_INVALID_QUERY status code. |
*/ | */ |
class PEGASUS_PROVIDER_LINKAGE CIMInvalidQueryException | class PEGASUS_PROVIDER_LINKAGE CIMInvalidQueryException |
: public CIMOperationFailedException | : public CIMOperationFailedException |
{ | { |
public: | public: |
|
/** |
|
Constructs a CIMInvalidQueryException with a specified error message. |
|
@param message A message String containing an error description |
|
*/ |
CIMInvalidQueryException(const String& message); | CIMInvalidQueryException(const String& message); |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
|
|
#endif | #endif |
| |
/** | /** |
Cause a <tt>CIM_ERR_METHOD_NOT_FOUND</tt> status code to be |
A CIMMethodNotFoundException indicates that a specified extrinsic method |
returned to the client. |
does not exist. This exception corresponds to the CIM_ERR_METHOD_NOT_FOUND |
|
status code. |
*/ | */ |
class PEGASUS_PROVIDER_LINKAGE CIMMethodNotFoundException | class PEGASUS_PROVIDER_LINKAGE CIMMethodNotFoundException |
: public CIMOperationFailedException | : public CIMOperationFailedException |
{ | { |
public: | public: |
/// |
/** |
|
Constructs a CIMMethodNotFoundException with a specified error message. |
|
@param message A message String containing an error description |
|
*/ |
CIMMethodNotFoundException(const String& message); | CIMMethodNotFoundException(const String& message); |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |