SimpleITK  1.2.4
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 () SITK_NOEXCEPT
 
 GenericException (const GenericException &e) SITK_NOEXCEPT
 
 GenericException (const char *file, unsigned int lineNumber) SITK_NOEXCEPT
 
 GenericException (const std::string &file, unsigned int lineNumber) SITK_NOEXCEPT
 
 GenericException (const std::string &file, unsigned int lineNumber, const std::string &desc) SITK_NOEXCEPT
 
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 SITK_NOEXCEPT
 
virtual ~GenericException () SITK_NOEXCEPT
 

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 ( )

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

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

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

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

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 
)

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

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

Virtual destructor needed for subclasses. Has to have empty SITK_NOEXCEPT.

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

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: