Exception Class Reference

#include <Exception.h>

Inheritance diagram for Exception:

AlreadyConnectedException AlreadyExistsException BindFailedException CannotConnectException CannotCreateSocketException CIMClientHTTPErrorException CIMClientMalformedHTTPException CIMClientResponseException CIMClientXmlException CIMException ConnectionTimeoutException DateTimeOutOfRangeException DynamicCastFailedException IndexOutOfBoundsException InvalidDateTimeFormatException InvalidLocatorException InvalidNameException InvalidNamespaceNameException MalformedObjectNameException NotConnectedException SSLException TypeMismatchException UninitializedObjectException List of all members.

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::Exception ( const String message  ) 

Constructs an Exception with a specified error message.

Parameters:
message A message String containing a description of the error

Exception::Exception ( const Exception exception  ) 

Constructs an Exception by copying another Exception object.

Parameters:
exception The Exception object to copy

virtual Exception::~Exception (  )  [virtual]

Destructs an Exception object.

Exception::Exception (  )  [protected]

The default constructor is not available for the Exception class.


Member Function Documentation

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

Gets the error description message.

Returns:
A message String containing a description of the error

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

Assigns the value from a specified Exception object.

Parameters:
exception The Exception object to copy
Returns:
A reference to this Exception object with the new assignment


Member Data Documentation

ExceptionRep* Exception::_rep [protected]

An internal representation of the Exception attributes.


The documentation for this class was generated from the following file:
  • /scratch/rpmbuild.22230.L22270/pegasus/src/Pegasus/Common/Exception.h