CannotConvertToTypeException Class Reference

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

Inheritance diagram for CannotConvertToTypeException:

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 150 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 160 of file configurationexceptions.h.

CannotConvertToTypeException ( const CannotConvertToTypeException other) throw ()
inline

Copy constructor.

Parameters
otherthe exception to copy

Definition at line 179 of file configurationexceptions.h.

virtual ~CannotConvertToTypeException ( ) throw ()
inlinevirtual

Destructor.

Definition at line 213 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 232 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 244 of file configurationexceptions.h.

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

Copy operator.

Parameters
otherthe exception to copy

Definition at line 194 of file configurationexceptions.h.

virtual const char* what ( ) const throw ()
inlinevirtual

Returns a C string describing the exception.

Returns
a C string describing the exception

Definition at line 222 of file configurationexceptions.h.


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