#include <itkFEMException.h>
Inheritance diagram for itk::fem::FEMExceptionWrongClass:
Public Member Functions | |
FEMExceptionWrongClass (const char *file, unsigned int lineNumber, std::string location) | |
virtual | ~FEMExceptionWrongClass () throw () |
virtual const char * | GetNameOfClass () const |
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.
|
|
|
Virtual destructor needed for subclasses. Has to have empty throw(). Definition at line 112 of file itkFEMException.h. |
|
Type related information. Reimplemented from itk::fem::FEMException. |