version 1.24, 2007/02/06 19:05:35
|
version 1.29.4.1, 2008/07/01 15:17:59
|
|
|
_rep->message.append("): "); | _rep->message.append("): "); |
_rep->message.append(message); | _rep->message.append(message); |
| |
PEG_TRACE_STRING(TRC_DISCARDED_DATA, Tracer::LEVEL2, _rep->message); |
PEG_TRACE_STRING(TRC_DISCARDED_DATA, Tracer::LEVEL1, _rep->message); |
} | } |
| |
AssertionFailureException::~AssertionFailureException() | AssertionFailureException::~AssertionFailureException() |
|
|
const char BadQualifierType::KEY[] = | const char BadQualifierType::KEY[] = |
"Common.InternalException.BAD_QUALIFIER_TYPE"; | "Common.InternalException.BAD_QUALIFIER_TYPE"; |
| |
const char ClassAlreadyResolved::MSG[] = |
|
"attempt to resolve a class that is already resolved: $0"; |
|
const char ClassAlreadyResolved::KEY[] = |
|
"Common.InternalException.CLASS_ALREADY_RESOLVED"; |
|
|
|
const char ClassNotResolved::MSG[] = "class is not yet resolved: $0"; |
|
const char ClassNotResolved::KEY[] = |
|
"Common.InternalException.CLASS_NOT_RESOLVED"; |
|
|
|
const char InstanceAlreadyResolved::MSG[] = |
|
"attempted to resolve a instance that is already resolved"; |
|
const char InstanceAlreadyResolved::KEY[] = |
|
"Common.InternalException.INSTANCE_ALREADY_RESOLVED"; |
|
|
|
const char InstantiatedAbstractClass::MSG[] = | const char InstantiatedAbstractClass::MSG[] = |
"attempted to instantiate an abstract class $0"; | "attempted to instantiate an abstract class $0"; |
const char InstantiatedAbstractClass::KEY[] = | const char InstantiatedAbstractClass::KEY[] = |
|
|
const char StackOverflow::MSG[] = "stack overflow"; | const char StackOverflow::MSG[] = "stack overflow"; |
const char StackOverflow::KEY[] = "Common.InternalException.STACK_OVERFLOW"; | const char StackOverflow::KEY[] = "Common.InternalException.STACK_OVERFLOW"; |
| |
const char BadFormat::MSG[] = "bad format passed to Formatter::format()"; |
|
const char BadFormat::KEY[] = "Common.InternalException.BAD_FORMAT"; |
|
|
|
const char BadlyFormedCGIQueryString::MSG[] = "badly formed CGI query string"; |
|
const char BadlyFormedCGIQueryString::KEY[] = |
|
"Common.InternalException.BADLY_FORMED_CGI_QUERY_STRING"; |
|
|
|
const char DynamicLoadFailed::MSG[] = "load of dynamic library failed: $0"; | const char DynamicLoadFailed::MSG[] = "load of dynamic library failed: $0"; |
const char DynamicLoadFailed::KEY[] = | const char DynamicLoadFailed::KEY[] = |
"Common.InternalException.DYNAMIC_LOAD_FAILED"; | "Common.InternalException.DYNAMIC_LOAD_FAILED"; |
|
|
tmp.append(cimStatusCodeToString(code)); | tmp.append(cimStatusCodeToString(code)); |
if (message != String::EMPTY) | if (message != String::EMPTY) |
{ | { |
tmp.append(": \""); |
tmp.append(": "); |
tmp.append(message); | tmp.append(message); |
tmp.append("\""); |
|
} | } |
return tmp; | return tmp; |
} | } |
|
|
tmp = cimStatusCodeToString(code, contentLanguages); | tmp = cimStatusCodeToString(code, contentLanguages); |
if (message != String::EMPTY) | if (message != String::EMPTY) |
{ | { |
tmp.append(": \""); |
tmp.append(": "); |
tmp.append(message); | tmp.append(message); |
tmp.append("\""); |
|
} | } |
return tmp; | return tmp; |
} | } |
|
|
tmp = cimMessage; | tmp = cimMessage; |
if (extraMessage != String::EMPTY) | if (extraMessage != String::EMPTY) |
{ | { |
tmp.append(": \""); |
tmp.append(": "); |
tmp.append(extraMessage); | tmp.append(extraMessage); |
tmp.append("\""); |
|
} | } |
return tmp; | return tmp; |
} | } |
|
|
String tmp = file; | String tmp = file; |
tmp.append("("); | tmp.append("("); |
char buffer[32]; | char buffer[32]; |
sprintf(buffer, "%d", line); |
sprintf(buffer, "%u", line); |
tmp.append(buffer); | tmp.append(buffer); |
tmp.append("): "); | tmp.append("): "); |
tmp.append(_makeCIMExceptionDescription(code, message)); | tmp.append(_makeCIMExceptionDescription(code, message)); |
|
|
rep->file = file; | rep->file = file; |
rep->line = line; | rep->line = line; |
| |
// Localize the cim message from the code. Use the language of |
// Get the cim message from the code. Ignore the content languages from |
// the current thread. |
// this operation, since the cimMessage string is only localized when the |
rep->contentLanguages = cimStatusCodeToString_Thread(rep->cimMessage, code); |
// code is invalid. |
|
cimStatusCodeToString_Thread(rep->cimMessage, code); |
} | } |
| |
TraceableCIMException::TraceableCIMException( | TraceableCIMException::TraceableCIMException( |
|
|
rep->file = file; | rep->file = file; |
rep->line = line; | rep->line = line; |
| |
// Localize the cim message from the code. Use the language of |
// Get the cim message from the code. Ignore the content languages from |
// the current thread. |
// this operation, since the cimMessage string is only localized when the |
rep->contentLanguages = cimStatusCodeToString_Thread(rep->cimMessage, code); |
// code is invalid. |
|
cimStatusCodeToString_Thread(rep->cimMessage, code); |
} | } |
| |
TraceableCIMException::TraceableCIMException( | TraceableCIMException::TraceableCIMException( |
|
|
| |
//============================================================================== | //============================================================================== |
// | // |
// ClassAlreadyResolved |
|
// |
|
//============================================================================== |
|
|
|
ClassAlreadyResolved::ClassAlreadyResolved(const String& className) |
|
: Exception(MessageLoaderParms( |
|
ClassAlreadyResolved::KEY, |
|
ClassAlreadyResolved::MSG, |
|
className)) |
|
{ |
|
} |
|
|
|
ClassAlreadyResolved::~ClassAlreadyResolved() |
|
{ |
|
} |
|
|
|
//============================================================================== |
|
// |
|
// ClassNotResolved |
|
// |
|
//============================================================================== |
|
|
|
ClassNotResolved::ClassNotResolved(const String& className) |
|
: Exception(MessageLoaderParms( |
|
ClassNotResolved::KEY, |
|
ClassNotResolved::MSG, |
|
className)) |
|
{ |
|
} |
|
|
|
ClassNotResolved::~ClassNotResolved() |
|
{ |
|
} |
|
|
|
//============================================================================== |
|
// |
|
// InstanceAlreadyResolved |
|
// |
|
//============================================================================== |
|
|
|
InstanceAlreadyResolved::InstanceAlreadyResolved() |
|
: Exception(MessageLoaderParms( |
|
InstanceAlreadyResolved::KEY, |
|
InstanceAlreadyResolved::MSG)) |
|
{ |
|
} |
|
|
|
InstanceAlreadyResolved::~InstanceAlreadyResolved() |
|
{ |
|
} |
|
|
|
//============================================================================== |
|
// |
|
// InstantiatedAbstractClass | // InstantiatedAbstractClass |
// | // |
//============================================================================== | //============================================================================== |
|
|
| |
//============================================================================== | //============================================================================== |
// | // |
// BadFormat |
|
// |
|
//============================================================================== |
|
|
|
BadFormat::BadFormat() |
|
: Exception(MessageLoaderParms(BadFormat::KEY, BadFormat::MSG)) |
|
{ |
|
} |
|
|
|
BadFormat::~BadFormat() |
|
{ |
|
} |
|
|
|
//============================================================================== |
|
// |
|
// BadlyFormedCGIQueryString |
|
// |
|
//============================================================================== |
|
|
|
BadlyFormedCGIQueryString::BadlyFormedCGIQueryString() |
|
: Exception(MessageLoaderParms(BadFormat::KEY, BadFormat::MSG)) |
|
{ |
|
} |
|
|
|
BadlyFormedCGIQueryString::~BadlyFormedCGIQueryString() |
|
{ |
|
} |
|
|
|
//============================================================================== |
|
// |
|
// DynamicLoadFailed | // DynamicLoadFailed |
// | // |
//============================================================================== | //============================================================================== |
|
|
{ | { |
} | } |
| |
|
void ThrowUninitializedObjectException() |
|
{ |
|
throw UninitializedObjectException(); |
|
} |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |