CannotConvertToTypeException Class Reference

The exception thrown when casting an ParameterSettable object to the requested type fails. More...

List of all members.

Public Member Functions

 CannotConvertToTypeException (const char *className, const std::type_info &destTypeId) throw ()
 Constructor.
 CannotConvertToTypeException (const CannotConvertToTypeException &other) throw ()
 Copy constructor.
virtual ~CannotConvertToTypeException () throw ()
 Destructor.
const char * className () const throw ()
 Returns the name of the class that couldn't be found.
const std::type_info & destTypeName () const throw ()
 Returns the type_info of the type to which the new object should have been converted.
CannotConvertToTypeExceptionoperator= (const CannotConvertToTypeException &other) throw ()
 Copy operator.
virtual const char * what () const throw ()
 Returns a C string describing the exception.

Detailed Description

The exception thrown when casting an ParameterSettable object to the requested type fails.

Definition at line 151 of file configurationexceptions.h.


Constructor & Destructor Documentation

CannotConvertToTypeException ( const char *  className,
const std::type_info &  destTypeId 
) throw () [inline]

Constructor.

Parameters:
classNamethe name of the class that was requested
destTypeIDthe type id of the type to which the new object should have been converted

Definition at line 161 of file configurationexceptions.h.

CannotConvertToTypeException ( const CannotConvertToTypeException other) throw () [inline]

Copy constructor.

Parameters:
otherthe exception to copy

Definition at line 180 of file configurationexceptions.h.

virtual ~CannotConvertToTypeException ( ) throw () [inline, virtual]

Destructor.

Definition at line 214 of file configurationexceptions.h.


Member Function Documentation

const char* className ( ) const throw () [inline]

Returns the name of the class that couldn't be found.

Returns:
the name of the class that couldn't be found

Definition at line 233 of file configurationexceptions.h.

const std::type_info& destTypeName ( ) const throw () [inline]

Returns the type_info of the type to which the new object should have been converted.

Returns:
the type_info of the type to which the new object should have been converted

Definition at line 245 of file configurationexceptions.h.

CannotConvertToTypeException& operator= ( const CannotConvertToTypeException other) throw () [inline]

Copy operator.

Parameters:
otherthe exception to copy

Definition at line 195 of file configurationexceptions.h.

virtual const char* what ( ) const throw () [inline, virtual]

Returns a C string describing the exception.

Returns:
a C string describing the exception

Definition at line 223 of file configurationexceptions.h.


The documentation for this class was generated from the following file: