version 1.1, 2002/08/16 01:28:06
|
version 1.4, 2002/09/11 21:20:24
|
|
|
}; | }; |
| |
// ATTN: P3 KS documentation Required | // ATTN: P3 KS documentation Required |
class PEGASUS_COMMON_LINKAGE NullType : public Exception |
|
{ |
|
public: |
|
|
|
static const char MSG[]; |
|
|
|
NullType() : Exception(MSG) { } |
|
}; |
|
|
|
// ATTN: P3 KS documentation Required |
|
class PEGASUS_COMMON_LINKAGE ClassAlreadyResolved : public Exception | class PEGASUS_COMMON_LINKAGE ClassAlreadyResolved : public Exception |
{ | { |
public: | public: |
|
|
UnauthorizedAccess() : Exception(MSG) { } | UnauthorizedAccess() : Exception(MSG) { } |
}; | }; |
| |
#if 0 |
class PEGASUS_COMMON_LINKAGE IncompatibleTypesException : public Exception |
#define PEGASUS_CIM_EXCEPTION(CODE, EXTRA_MESSAGE) \ |
{ |
CIMException(CODE, EXTRA_MESSAGE, __FILE__, __LINE__) |
public: |
|
IncompatibleTypesException(); |
|
}; |
|
|
| |
/** The CIMException defines the CIM exceptions that are formally defined in | /** The CIMException defines the CIM exceptions that are formally defined in |
the CIM Operations over HTTP specification. InternalCIMException allows |
the CIM Operations over HTTP specification. TraceableCIMException allows |
file name and line number information to be added for diagnostic purposes. | file name and line number information to be added for diagnostic purposes. |
*/ | */ |
class PEGASUS_COMMON_LINKAGE InternalCIMException : public CIMException |
class PEGASUS_COMMON_LINKAGE TraceableCIMException : public CIMException |
{ | { |
public: | public: |
| |
InternalCIMException( |
TraceableCIMException( |
CIMStatusCode code = CIM_ERR_SUCCESS, |
CIMStatusCode code, |
const String& message = String::EMPTY, |
const String& message, |
const char* file = "", |
const char* file, |
Uint32 line = 0); |
Uint32 line); |
| |
String getTraceDescription() const; |
TraceableCIMException(const CIMException & cimException); |
| |
private: |
String getDescription() const; |
const char* _file; |
|
Uint32 _line; |
String getTraceDescription() const; |
}; | }; |
#endif |
|
|
#define PEGASUS_CIM_EXCEPTION(CODE, EXTRA_MESSAGE) \ |
|
TraceableCIMException(CODE, EXTRA_MESSAGE, __FILE__, __LINE__) |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |