version 1.12, 2002/06/01 00:57:16
|
version 1.13, 2002/06/03 22:42:04
|
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
/** |
|
Parent class for exceptions thrown by providers. |
|
|
|
<p>The <tt>OperationFailure</tt> class is an exception class, |
|
and the parent 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.</p> |
|
|
|
<p>Providers do not throw every possible exception that clients |
|
may received from the CIMOM. The exceptions which may be thrown |
|
by providers are a subset of the possible exceptions, and are |
|
described in their respective sections.</p> |
|
|
|
<p>All of the provider exceptions accept a <tt>message</tt> |
|
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.</p> |
|
*/ |
class OperationFailure : public CIMException | class OperationFailure : public CIMException |
{ | { |
public: | public: |
|
/** |
|
Generic operation failure. |
|
|
|
<p>This exception will cause a <tt>CIM_ERR_FAILED</tt> |
|
status code to be returned to the client.</p> |
|
*/ |
OperationFailure(const String & message) : CIMException(CIM_ERR_FAILED, message) | OperationFailure(const String & message) : CIMException(CIM_ERR_FAILED, message) |
{ | { |
} | } |
|
|
} | } |
}; | }; |
| |
|
/** |
|
Cause a <tt>CIM_ERR_NOT_SUPPORTED</tt> status code to be |
|
returned to the client. |
|
*/ |
class NotSupported : public OperationFailure | class NotSupported : public OperationFailure |
{ | { |
public: | public: |
|
|
} | } |
}; | }; |
| |
|
/** |
|
Cause a <tt>CIM_ERR_ACCESS_DENIED</tt> status code to be |
|
returned to the client. |
|
*/ |
class AccessDenied : public OperationFailure | class AccessDenied : public OperationFailure |
{ | { |
public: | public: |
|
|
} | } |
}; | }; |
| |
|
/** |
|
Cause a <tt>CIM_ERR_INVALID_PARAMETER</tt> status code to be |
|
returned to the client. |
|
*/ |
class InvalidParameter : public OperationFailure | class InvalidParameter : public OperationFailure |
{ | { |
public: | public: |
|
|
} | } |
}; | }; |
| |
|
/** |
|
Cause a <tt>CIM_ERR_INVALID_CLASS</tt> status code to be |
|
returned to the client. |
|
*/ |
class InvalidClass : public OperationFailure | class InvalidClass : public OperationFailure |
{ | { |
public: | public: |
|
|
} | } |
}; | }; |
| |
|
/** |
|
Cause a <tt>CIM_ERR_INVALID_QUERY</tt> status code to be |
|
returned to the client. |
|
*/ |
class InvalidQuery : public OperationFailure | class InvalidQuery : public OperationFailure |
{ | { |
public: | public: |
|
|
} | } |
}; | }; |
| |
|
/** |
|
Cause a <tt>CIM_ERR_ALREADY_EXISTS</tt> status code to be |
|
returned to the client. |
|
*/ |
class ObjectAlreadyExists : public OperationFailure | class ObjectAlreadyExists : public OperationFailure |
{ | { |
public: | public: |
|
|
} | } |
}; | }; |
| |
|
/** |
|
Cause a <tt>CIM_ERR_NOT_FOUND</tt> status code to be |
|
returned to the client. |
|
*/ |
class ObjectNotFound : public OperationFailure | class ObjectNotFound : public OperationFailure |
{ | { |
public: | public: |
|
|
} | } |
}; | }; |
| |
|
/** |
|
Cause a <tt>CIM_ERR_METHOD_NOT_FOUND</tt> status code to be |
|
returned to the client. |
|
*/ |
class MethodNotFound : public OperationFailure | class MethodNotFound : public OperationFailure |
{ | { |
public: | public: |
|
|
} | } |
}; | }; |
| |
|
/** |
|
Cause a <tt>CIM_ERR_NO_SUCH_PROPERTY</tt> status code to be |
|
returned to the client. |
|
*/ |
class PropertyNotFound : public OperationFailure | class PropertyNotFound : public OperationFailure |
{ | { |
public: | public: |