version 1.30, 2002/07/30 22:03:00
|
version 1.31, 2002/07/31 22:05:08
|
|
|
| |
void CIMMethodRep::addParameter(const CIMParameter& x) | void CIMMethodRep::addParameter(const CIMParameter& x) |
{ | { |
if (x.isNull()) |
if (x.isUninitialized()) |
throw UninitializedHandle(); |
throw UninitializedObject(); |
| |
if (findParameter(x.getName()) != PEG_NOT_FOUND) | if (findParameter(x.getName()) != PEG_NOT_FOUND) |
throw AlreadyExists(); | throw AlreadyExists(); |
|
|
| |
// Check for type mismatch between return types. | // Check for type mismatch between return types. |
| |
PEGASUS_ASSERT(!inheritedMethod.isNull()); |
PEGASUS_ASSERT(!inheritedMethod.isUninitialized()); |
| |
// Validate the qualifiers of the method (according to | // Validate the qualifiers of the method (according to |
// superClass's method with the same name). This method | // superClass's method with the same name). This method |