ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkFEMException.h>
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 accommodate this differences. Currently they are ignored.
Definition at line 107 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 ( ) |
Public Member Functions inherited from itk::fem::FEMException | |
FEMException (const char *file, unsigned int lineNumber, std::string location="Unknown") | |
virtual | ~FEMException () throw ( ) |
Public Member Functions inherited from itk::ExceptionObject | |
virtual const char * | GetDescription () const |
virtual const char * | GetFile () const |
virtual unsigned int | GetLine () const |
virtual const char * | GetLocation () const |
ExceptionObject & | operator= (const ExceptionObject &orig) |
virtual bool | operator== (const ExceptionObject &orig) |
virtual void | Print (std::ostream &os) const |
virtual void | SetDescription (const std::string &s) |
virtual void | SetDescription (const char *s) |
virtual void | SetLocation (const std::string &s) |
virtual void | SetLocation (const char *s) |
virtual const char * | what () const noexceptoverride |
virtual | ~ExceptionObject () noexcept |
ExceptionObject () | |
ExceptionObject (const char *file, unsigned int lineNumber=0, const char *desc="None", const char *loc="Unknown") | |
ExceptionObject (const std::string &file, unsigned int lineNumber=0, const std::string &desc="None", const std::string &loc="Unknown") | |
ExceptionObject (const ExceptionObject &orig) | |
Additional Inherited Members | |
Public Types inherited from itk::ExceptionObject | |
typedef std::exception | Superclass |
itk::fem::FEMExceptionWrongClass::FEMExceptionWrongClass | ( | const char * | file, |
unsigned int | lineNumber, | ||
std::string | location | ||
) |
|
virtual |
Virtual destructor needed for subclasses. Has to have empty throw().
|
virtual |
Type related information.
Reimplemented from itk::fem::FEMException.