version 1.4.14.4, 2003/08/14 11:55:42
|
version 1.12, 2004/10/17 20:39:17
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2004//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
} while (0) | } while (0) |
| |
| |
// l10n TODO - finish the commented out constructors |
|
|
|
// ATTN: P3 KS documentation Required | // ATTN: P3 KS documentation Required |
class PEGASUS_COMMON_LINKAGE NullPointer : public Exception | class PEGASUS_COMMON_LINKAGE NullPointer : public Exception |
{ | { |
|
|
IncompatibleTypesException(); | IncompatibleTypesException(); |
}; | }; |
| |
|
class PEGASUS_COMMON_LINKAGE InternalSystemError : public Exception |
|
{ |
|
public: |
|
|
|
static const char MSG[]; |
|
|
|
InternalSystemError() |
|
: Exception(MSG) { } |
|
}; |
|
|
| |
/** 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. TraceableCIMException allows | the CIM Operations over HTTP specification. TraceableCIMException allows |
|
|
TraceableCIMException( | TraceableCIMException( |
CIMStatusCode code, | CIMStatusCode code, |
const String& message, | const String& message, |
const char* file, |
const String& file, |
Uint32 line); | Uint32 line); |
| |
//l10n | //l10n |
TraceableCIMException( | TraceableCIMException( |
CIMStatusCode code, | CIMStatusCode code, |
MessageLoaderParms parms, | MessageLoaderParms parms, |
const char* file, |
const String& file, |
Uint32 line); | Uint32 line); |
| |
// l10n | // l10n |
|
|
const ContentLanguages& langs, | const ContentLanguages& langs, |
CIMStatusCode code, | CIMStatusCode code, |
const String& message, | const String& message, |
const char* file, |
const String& file, |
Uint32 line); | Uint32 line); |
| |
TraceableCIMException(const CIMException & cimException); | TraceableCIMException(const CIMException & cimException); |
|
|
String getDescription() const; | String getDescription() const; |
| |
String getTraceDescription() const; | String getTraceDescription() const; |
|
|
|
String getCIMMessage() const; |
|
void setCIMMessage(const String& cimMessage); |
|
|
|
String getFile() const; |
|
Uint32 getLine() const; |
|
const ContentLanguages& getContentLanguages() const; |
}; | }; |
| |
#define PEGASUS_CIM_EXCEPTION(CODE, EXTRA_MESSAGE) \ | #define PEGASUS_CIM_EXCEPTION(CODE, EXTRA_MESSAGE) \ |
TraceableCIMException(CODE, EXTRA_MESSAGE, __FILE__, __LINE__) |
TraceableCIMException(CODE, EXTRA_MESSAGE, String(__FILE__), __LINE__) |
| |
// l10n | // l10n |
#define PEGASUS_CIM_EXCEPTION_LANG(LANGS, CODE, EXTRA_MESSAGE) \ | #define PEGASUS_CIM_EXCEPTION_LANG(LANGS, CODE, EXTRA_MESSAGE) \ |
TraceableCIMException(LANGS, CODE, EXTRA_MESSAGE, __FILE__, __LINE__) |
TraceableCIMException( \ |
|
LANGS, CODE, EXTRA_MESSAGE, String(__FILE__), __LINE__) |
| |
//l10n | //l10n |
#define PEGASUS_CIM_EXCEPTION_L(CODE, MSG_PARMS) \ | #define PEGASUS_CIM_EXCEPTION_L(CODE, MSG_PARMS) \ |
TraceableCIMException(CODE, MSG_PARMS, __FILE__, __LINE__) |
TraceableCIMException(CODE, MSG_PARMS, String(__FILE__), __LINE__) |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |