MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
More complex exception class encapsulating information about its origin and description. More...
#include <mdsFullException.h>
Public Member Functions | |
CFullException (const std::string &sReason, const std::string &sFilename, int iLine) throw () | |
Exception constructor. | |
CFullException (const CFullException &e) throw () | |
Exception copy constructor. | |
const std::string & | getFilename () const throw () |
Returns concrete filename. | |
int | getLine () const throw () |
Returns concrete line. | |
const std::string & | getReason () const throw () |
Returns description of exception reason. | |
virtual void | print (std::ostream &Stream) const |
Writes exception description into the output stream in a human readable form. | |
virtual const char * | what () const throw () |
Returns description of exception reason. | |
virtual | ~CFullException () throw () |
Virtual destructor. | |
Protected Attributes | |
int | m_iLine |
Line on which exception has risen. | |
std::string | m_sFilename |
File in which exception has risen. | |
std::string | m_sReason |
Exception reason. | |
Friends | |
std::ostream & | operator<< (std::ostream &Stream, const CFullException &Exception) |
Writes exception description into the output stream. |
More complex exception class encapsulating information about its origin and description.
mds::base::CFullException::CFullException | ( | const std::string & | sReason, |
const std::string & | sFilename, | ||
int | iLine | ||
) | throw () |
Exception constructor.
mds::base::CFullException::CFullException | ( | const CFullException & | e | ) | throw () |
Exception copy constructor.
virtual mds::base::CFullException::~CFullException | ( | ) | throw () [virtual] |
Virtual destructor.
const std::string& mds::base::CFullException::getFilename | ( | ) | const throw () |
Returns concrete filename.
int mds::base::CFullException::getLine | ( | ) | const throw () |
Returns concrete line.
const std::string& mds::base::CFullException::getReason | ( | ) | const throw () |
Returns description of exception reason.
void mds::base::CFullException::print | ( | std::ostream & | Stream | ) | const [virtual] |
Writes exception description into the output stream in a human readable form.
Reimplemented in mds::base::CError, and mds::base::CWarning.
const char * mds::base::CFullException::what | ( | ) | const throw () [virtual] |
Returns description of exception reason.
Reimplemented from mds::base::CException.
std::ostream& operator<< | ( | std::ostream & | Stream, |
const CFullException & | Exception | ||
) | [friend] |
Writes exception description into the output stream.
int mds::base::CFullException::m_iLine [protected] |
Line on which exception has risen.
std::string mds::base::CFullException::m_sFilename [protected] |
File in which exception has risen.
std::string mds::base::CFullException::m_sReason [protected] |
Exception reason.