SimpleITK  
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:

Detailed Description

The base SimpleITK exception class.

Definition at line 55 of file sitkExceptionObject.h.

Public Member Functions

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

Private Attributes

std::shared_ptr< const ExceptionObjectm_PimpleException
 

Constructor & Destructor Documentation

◆ GenericException() [1/5]

itk::simple::GenericException::GenericException ( )
noexcept

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

Referenced by GenericException(), GenericException(), GenericException(), GenericException(), operator=(), operator==(), and ~GenericException().

◆ GenericException() [2/5]

itk::simple::GenericException::GenericException ( const GenericException & e)
noexcept

References GenericException().

◆ GenericException() [3/5]

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

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

References GenericException().

◆ GenericException() [4/5]

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

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

References GenericException().

◆ GenericException() [5/5]

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

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

References GenericException().

◆ ~GenericException()

itk::simple::GenericException::~GenericException ( )
overridenoexcept

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

References GenericException().

Member Function Documentation

◆ GetDescription()

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

References GetDescription().

Referenced by GetDescription().

◆ GetFile()

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

What file did the exception occur in?

References GetFile().

Referenced by GetFile().

◆ GetLine()

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

What line did the exception occur in?

References GetLine().

Referenced by GetLine().

◆ GetLocation()

virtual const char * itk::simple::GenericException::GetLocation ( ) const
virtual

References GetLocation().

Referenced by GetLocation().

◆ GetNameOfClass()

virtual const char * itk::simple::GenericException::GetNameOfClass ( ) const
virtual

References GetNameOfClass().

Referenced by GetNameOfClass().

◆ operator=()

GenericException & itk::simple::GenericException::operator= ( const GenericException & orig)

Assignment operator.

References GenericException().

◆ operator==()

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

Equivalence operator.

References GenericException().

◆ ToString()

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

Return a description of the error

References ToString().

Referenced by ToString().

◆ what()

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

References what().

Referenced by what().

Member Data Documentation

◆ m_PimpleException

std::shared_ptr<const ExceptionObject> itk::simple::GenericException::m_PimpleException
private

Definition at line 109 of file sitkExceptionObject.h.


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