version 1.16, 2006/01/10 19:41:15
|
version 1.18, 2006/05/10 19:40:38
|
|
|
//%2005//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// EMC Corporation; VERITAS Software Corporation; The Open Group. | // EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec 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 |
|
|
#define PEGASUS_CIM_EXCEPTION_L(CODE, MSG_PARMS) \ | #define PEGASUS_CIM_EXCEPTION_L(CODE, MSG_PARMS) \ |
TraceableCIMException(CODE, MSG_PARMS, String(__FILE__), __LINE__) | TraceableCIMException(CODE, MSG_PARMS, String(__FILE__), __LINE__) |
| |
|
/** Macro to prevent overflow of a signed int value when said value is |
|
* doubled. If String/Array/Buffer size is greater than 0x3FFFFFFF, then |
|
* something is suspect, throw bad_alloc exception. |
|
*/ |
|
#define PEGASUS_CHECK_CAPACITY_OVERFLOW(capacity) \ |
|
do \ |
|
{ \ |
|
if (capacity > 0x3FFFFFFF) \ |
|
throw PEGASUS_STD(bad_alloc)(); \ |
|
} \ |
|
while (0) |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
#endif /* Pegasus_InternalException_h */ | #endif /* Pegasus_InternalException_h */ |