Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::fem::FEMExceptionWrongClass Class Reference

Bad object exception. More...

#include <itkFEMException.h>

Inheritance diagram for itk::fem::FEMExceptionWrongClass:

Inheritance graph
[legend]
Collaboration diagram for itk::fem::FEMExceptionWrongClass:

Collaboration graph
[legend]
List of all members.

Public Methods

 FEMExceptionWrongClass (const char *file, unsigned int lineNumber, std::string location)
virtual ~FEMExceptionWrongClass () throw ()
virtual const char * GetClassName () const

Detailed Description

Bad object exception.

This exception occures, when a the pointer that was passed to a function or member, was pointing to the wrong class of object. Usially this means that the dynamic_cast operator failed. This exception object is normally generated by catching the std::bad_cast exception.

FIXME: Note that there are big differences between compilers when it comes to catching standard exceptions. MSVC, for example DOESN'T properly catch std::bad_cast generated by a failed dynamic_cast operator. It does, however catch the std:exception. Update the bad_cast in ALL files to accomodate this differences. Currently they are ignored.

Definition at line 106 of file itkFEMException.h.


Constructor & Destructor Documentation

itk::fem::FEMExceptionWrongClass::FEMExceptionWrongClass const char *    file,
unsigned int    lineNumber,
std::string    location
 

virtual itk::fem::FEMExceptionWrongClass::~FEMExceptionWrongClass   throw () [inline, virtual]
 

Virtual destructor needed for subclasses. Has to have empty throw().

Definition at line 112 of file itkFEMException.h.


Member Function Documentation

virtual const char* itk::fem::FEMExceptionWrongClass::GetClassName   const [virtual]
 

Type related information.

Reimplemented from itk::fem::FEMException.


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:50:51 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000