ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Member Functions
itk::fem::FEMExceptionWrongClass Class Reference

#include <itkFEMException.h>

+ Inheritance diagram for itk::fem::FEMExceptionWrongClass:
+ Collaboration diagram for itk::fem::FEMExceptionWrongClass:

List of all members.

Public Member Functions

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

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 111 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 117 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: