Bad object exception. More...
#include <itkFEMException.h>
Public Member Functions | |
FEMExceptionWrongClass (const char *file, unsigned int lineNumber, std::string location) | |
virtual const char * | GetNameOfClass () const |
virtual | ~FEMExceptionWrongClass () throw () |
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 100 of file itkFEMException.h.
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 106 of file itkFEMException.h.
virtual const char* itk::fem::FEMExceptionWrongClass::GetNameOfClass | ( | ) | const [virtual] |
Type related information.
Reimplemented from itk::fem::FEMException.