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

#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.

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.

Public Member Functions

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


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::GetNameOfClass (  )  const [virtual]

Type related information.

Reimplemented from itk::fem::FEMException.


The documentation for this class was generated from the following file:
Generated at Sun Sep 23 22:47:02 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000