SimpleITK  1.0.1
Public Member Functions | Private Attributes | List of all members
itk::simple::GenericException Class Reference

The base SimpleITK exception class. More...

#include <sitkExceptionObject.h>

+ Inheritance diagram for itk::simple::GenericException:
+ Collaboration diagram for itk::simple::GenericException:

Public Member Functions

 GenericException () throw ()
 
 GenericException (const GenericException &e) throw ()
 
 GenericException (const char *file, unsigned int lineNumber) throw ()
 
 GenericException (const std::string &file, unsigned int lineNumber) throw ()
 
 GenericException (const std::string &file, unsigned int lineNumber, const std::string &desc) throw ()
 
virtual const char * GetDescription () const
 
virtual const char * GetFile () const
 
virtual unsigned int GetLine () const
 
virtual const char * GetLocation () const
 
virtual const char * GetNameOfClass () const
 
GenericExceptionoperator= (const GenericException &orig)
 
virtual bool operator== (const GenericException &orig) const
 
std::string ToString () const
 
const char * what () const throw ()
 
virtual ~GenericException () throw ( )
 

Private Attributes

const ExceptionObject * m_PimpleException
 

Detailed Description

The base SimpleITK exception class.

Definition at line 44 of file sitkExceptionObject.h.

Constructor & Destructor Documentation

itk::simple::GenericException::GenericException ( )
throw (
)

Default constructor. Needed to ensure the exception object can be copied.

itk::simple::GenericException::GenericException ( const GenericException e)
throw (
)
itk::simple::GenericException::GenericException ( const char *  file,
unsigned int  lineNumber 
)
throw (
)

Constructor. Needed to ensure the exception object can be copied.

itk::simple::GenericException::GenericException ( const std::string &  file,
unsigned int  lineNumber 
)
throw (
)

Constructor. Needed to ensure the exception object can be copied.

itk::simple::GenericException::GenericException ( const std::string &  file,
unsigned int  lineNumber,
const std::string &  desc 
)
throw (
)

Constructor. Needed to ensure the exception object can be copied.

virtual itk::simple::GenericException::~GenericException ( )
throw (
)
virtual

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

Member Function Documentation

virtual const char* itk::simple::GenericException::GetDescription ( ) const
virtual
virtual const char* itk::simple::GenericException::GetFile ( ) const
virtual

What file did the exception occur in?

virtual unsigned int itk::simple::GenericException::GetLine ( ) const
virtual

What line did the exception occur in?

virtual const char* itk::simple::GenericException::GetLocation ( ) const
virtual
virtual const char* itk::simple::GenericException::GetNameOfClass ( ) const
virtual
GenericException& itk::simple::GenericException::operator= ( const GenericException orig)

Assignment operator.

virtual bool itk::simple::GenericException::operator== ( const GenericException orig) const
virtual

Equivalence operator.

std::string itk::simple::GenericException::ToString ( ) const

Return a description of the error

const char* itk::simple::GenericException::what ( ) const
throw (
)

Member Data Documentation

const ExceptionObject* itk::simple::GenericException::m_PimpleException
private

Definition at line 92 of file sitkExceptionObject.h.


The documentation for this class was generated from the following file: