ITK  4.13.0
Insight Segmentation and Registration Toolkit
Public Member Functions | List of all members
itk::fem::FEMExceptionWrongClass Class Reference

#include <itkFEMException.h>

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

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 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 () noexceptoverride
 
- Public Member Functions inherited from itk::fem::FEMException
 FEMException (const char *file, unsigned int lineNumber, std::string location="Unknown")
 
virtual ~FEMException () noexceptoverride
 
- 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
 
ExceptionObjectoperator= (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 () noexceptoverride
 
 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
 

Constructor & Destructor Documentation

itk::fem::FEMExceptionWrongClass::FEMExceptionWrongClass ( const char *  file,
unsigned int  lineNumber,
std::string  location 
)
virtual itk::fem::FEMExceptionWrongClass::~FEMExceptionWrongClass ( )
overridevirtualnoexcept

Virtual destructor needed for subclasses. Has to have empty throw().

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: