ResourceTypeMismatchException Class Reference

The exception thrown when a resource has different type from requested type. More...

List of all members.

Public Member Functions

 ResourceTypeMismatchException (const char *resourceName, const char *typeName) throw ()
 Constructor.
 ResourceTypeMismatchException (const ResourceTypeMismatchException &other) throw ()
 Copy constructor.
virtual ~ResourceTypeMismatchException () throw ()
 Destructor.
ResourceTypeMismatchExceptionoperator= (const ResourceTypeMismatchException &other) throw ()
 Copy operator.
const char * resourceName () const throw ()
 Returns the name of the resource.
const char * typeName () const throw ()
 Returns the type name of the resource.
virtual const char * what () const throw ()
 Returns a C string describing the exception.

Detailed Description

The exception thrown when a resource has different type from requested type.

Definition at line 1374 of file configurationexceptions.h.


Constructor & Destructor Documentation

ResourceTypeMismatchException ( const char *  resourceName,
const char *  typeName 
) throw () [inline]

Constructor.

Parameters:
resourceNamethe name of the resource. The buffer for this is at most 256 characters (including the '\0' terminator)
typeNamethe name of the expected type of the resource. The buffer for this is at most 256 characters (including the '\0' terminator)

Definition at line 1387 of file configurationexceptions.h.

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

Copy constructor.

Parameters:
otherthe exception to copy

Definition at line 1403 of file configurationexceptions.h.

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

Destructor.

Definition at line 1439 of file configurationexceptions.h.


Member Function Documentation

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

Copy operator.

Parameters:
otherthe exception to copy

Definition at line 1419 of file configurationexceptions.h.

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

Returns the name of the resource.

Returns:
the name of the resource

Definition at line 1458 of file configurationexceptions.h.

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

Returns the type name of the resource.

Returns:
the type name of the resource

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


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