The following table describes the exceptions that can occur.
Exception Thrown |
Description |
Details |
ArgumentNullException |
Attempting to add a NULL value field to a CIM object |
When attempting to add a field to a CIM object, either when using the untyped interface, or when adding an optional field to a strongly typed object, the framework throws an exception if the value of the field is NULL. |
Attempting to set the value of a field in a CIM object to NULL |
When attempting to set the value of a field in a CIM object the framework throws an exception if the value is NULL. | |
Attempting a network call without a valid provider parameter |
When attempting an Enumerate or Delete network call, if the provider parameter is NULL, the framework throws an exception. This can occur using strong typing, or using the untyped interface with static calls (such as Enumerate or static Delete). | |
Attempting a network call without valid selectors |
When attempting a network call such as Get, Put, Enumerate, Delete, or Invoke, when calling the version of the method that requires selectors, if the selectors parameter is NULL, the framework throws an exception. This can occur using either strong typing or the untyped interface. | |
Attempting a network call without a valid EPR |
When attempting a Get or Delete network call, when calling the version of the method that requires an EPR, if the EPR parameter is NULL, the framework throws an exception. This can occur using either strong typing or the untyped interface. | |
Attempting an Invoke call without a valid input parameter |
When attempting to call Invoke while using strong typing, if the input parameter is NULL, the framework throws an exception. | |
CimException |
Receiving a CIM object with an unknown type while using the untyped interface |
While using the the untyped interface portion of the framework, if an object is received from the CIM provider (typically the WsManClient) that has a CIM class that is not known to the framework, the framework throws an exception. |
Attempting to add an already existing field to a CIM object |
When attempting to add a field to a strongly typed object by calling AddField, the framework throws an exception if that field already exists. | |
Attempting to set the value of a non-existent field in a CIM object |
When attempting to set the value of a field, either when using strong typing, or when setting an optional field in the untyped interface object, the framework throws an exception if that field does not exist. | |
Attempting a network call without a valid provider |
When attempting a non-static network call such as Get, Put, Delete, Invoke, or Create, if the provider has not been set beforehand, the framework throws an exception. This can occur either using strong typing or the untyped interface. | |
CimPropertyException |
Attempting to get a nonexistent selector from a selectors class |
When attempting to get a selector from a selectors class, the framework throws an exception if that selector does not exist in the selectors collection. |
Copyright © 2006-2022, Intel Corporation. All rights reserved. |