#include <cmtkException.h>


Public Member Functions | |
| Exception (const std::string &errorMsg="", const void *const fromObject=NULL) | |
| Constructor. | |
| virtual | ~Exception () throw () |
| Virtual destructor. | |
| const std::string & | GetErrorMsg () const |
| Return pointer to the error message. | |
| const void * | GetFromObject () const |
| Return pointer to the object that encountered the error condition. | |
| virtual const char * | what () const throw () |
| Overwrite inherited "what" member. | |
Private Attributes | |
| std::string | m_ErrorMsg |
| Pointer to a string describing the condition causing the exception. | |
| const void * | m_FromObject |
| Pointer to the object that encountered the error condition. | |
Exception class.
Instances of this class are "thrown" in case of severe program errors. They can be given an optional error message and a pointer to the object that encountered the fatal condition.
Definition at line 56 of file cmtkException.h.
| cmtk::Exception::Exception | ( | const std::string & | errorMsg = "", |
| const void *const | fromObject = NULL |
||
| ) | [inline] |
Constructor.
| errorMsg | An optional error message describing the condition causing the exception. |
| fromObject | An optional pointer to the object that encountered the condition causing the exception. |
Definition at line 67 of file cmtkException.h.
| virtual cmtk::Exception::~Exception | ( | ) | throw () [inline, virtual] |
Virtual destructor.
Definition at line 74 of file cmtkException.h.
| const std::string& cmtk::Exception::GetErrorMsg | ( | ) | const [inline] |
Return pointer to the error message.
Definition at line 78 of file cmtkException.h.
| const void* cmtk::Exception::GetFromObject | ( | ) | const [inline] |
Return pointer to the object that encountered the error condition.
Definition at line 82 of file cmtkException.h.
| virtual const char* cmtk::Exception::what | ( | ) | const throw () [inline, virtual] |
Overwrite inherited "what" member.
Definition at line 85 of file cmtkException.h.
Referenced by cmtk::ImagePairAffineRegistrationCommandLine::OutputResult(), cmtk::ElasticRegistrationCommandLine::OutputResult(), cmtk::AffineRegistrationCommandLine::OutputResult(), and cmtk::RegistrationDatabaseUpdater::UpdateDB().
std::string cmtk::Exception::m_ErrorMsg [private] |
Pointer to a string describing the condition causing the exception.
Definition at line 92 of file cmtkException.h.
const void* cmtk::Exception::m_FromObject [private] |
Pointer to the object that encountered the error condition.
Definition at line 95 of file cmtkException.h.
1.7.2