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

Detailed Description

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

Definition at line 252 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 262 of file configurationexceptions.h.

CannotConvertToTypeException ( const CannotConvertToTypeException other)
throw (
)
inline

Copy constructor.

Parameters
otherthe exception to copy

Definition at line 281 of file configurationexceptions.h.

virtual ~CannotConvertToTypeException ( )
throw (
)
inlinevirtual

Destructor.

Definition at line 315 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 334 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 346 of file configurationexceptions.h.

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

Copy operator.

Parameters
otherthe exception to copy

Definition at line 296 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 324 of file configurationexceptions.h.


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