#include <Exception.h>

Inheritance diagram for Exception:
AlreadyConnectedException AlreadyExistsException BindFailedException CannotConnectException CannotCreateSocketException CIMClientHTTPErrorException CIMClientMalformedHTTPException CIMClientResponseException CIMClientXmlException CIMException ConnectionTimeoutException DateTimeOutOfRangeException DynamicCastFailedException IndexOutOfBoundsException InvalidDateTimeFormatException InvalidEnumerationContextException InvalidLocatorException InvalidNameException InvalidNamespaceNameException MalformedObjectNameException NotConnectedException SSLException TypeMismatchException UninitializedObjectException

Public Member Functions

 Exception (const String &message)
 
 Exception (const Exception &exception)
 
virtual ~Exception ()
 
Exceptionoperator= (const Exception &exception)
 
virtual const StringgetMessage () const
 

Protected Member Functions

 Exception ()
 

Protected Attributes

ExceptionRep * _rep
 

Detailed Description

The Exception class is the base class for exceptions generated by the Pegasus infrastructure.

Constructor & Destructor Documentation

◆ Exception() [1/3]

Exception::Exception ( const String message)

Constructs an Exception with a specified error message.

Parameters
messageA message String containing a description of the error

◆ Exception() [2/3]

Exception::Exception ( const Exception exception)

Constructs an Exception by copying another Exception object.

Parameters
exceptionThe Exception object to copy

◆ ~Exception()

virtual Exception::~Exception ( )
virtual

Destructs an Exception object.

◆ Exception() [3/3]

Exception::Exception ( )
protected

The default constructor is not available for the Exception class.

Member Function Documentation

◆ getMessage()

virtual const String& Exception::getMessage ( ) const
virtual

Gets the error description message.

Returns
A message String containing a description of the error

◆ operator=()

Exception& Exception::operator= ( const Exception exception)

Assigns the value from a specified Exception object.

Parameters
exceptionThe Exception object to copy
Returns
A reference to this Exception object with the new assignment

Member Data Documentation

◆ _rep

ExceptionRep* Exception::_rep
protected

An internal representation of the Exception attributes.


The documentation for this class was generated from the following file:
  • /home/loongson/rpmbuild/BUILD/pegasus/src/Pegasus/Common/Exception.h