MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Member Functions | Protected Attributes | Friends
mds::base::CFullException Class Reference

More complex exception class encapsulating information about its origin and description. More...

#include <mdsFullException.h>

Inheritance diagram for mds::base::CFullException:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

More complex exception class encapsulating information about its origin and description.


Constructor & Destructor Documentation

mds::base::CFullException::CFullException ( const std::string &  sReason,
const std::string &  sFilename,
int  iLine 
) throw ()

Exception constructor.

Exception copy constructor.

virtual mds::base::CFullException::~CFullException ( ) throw () [virtual]

Virtual destructor.


Member Function Documentation

const std::string& mds::base::CFullException::getFilename ( ) const throw ()

Returns concrete filename.

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.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const CFullException Exception 
) [friend]

Writes exception description into the output stream.


Member Data Documentation

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.


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