Exceptions

The C++ CimFramework detects a number of errors. This is especially important when the framework is used for untyped applications as there are more possibilities for runtime errors. The framework has five exception classes.

CimException

For C++ implementations, this class inherits from Exception. If this exception occurs, it is due to a logical error in the framework usage.

CimPropertyException

This class inherits from CimException. This exception is thrown when there is an attempt to access a non-existent property in an object.

WSManException

This exception represents a WS-Management error, and contains the WS-Management fault information.

These exceptions, along with others that are defined in the C++ standard library, are thrown whenever an error occurs.

ConversionException

This exception can occur when an error occurs while converting a string to a value or a value to a string.

HTTPException

This exception can occur when an HTTP connection error occurs.

Copyright © 2006-2022, Intel Corporation. All rights reserved.