MeVisLabToolboxReference
|
Exception class for DCMTree. More...
#include <DCMTree_Exception.h>
Public Member Functions | |
Exception (const std::string &method) | |
ctor - sets method to the given value | |
Exception (const std::string &method, const std::string &description) | |
ctor sets method to the given value sets description to the given value | |
Exception (const Exception &other) | |
copy - ctor uses operator= | |
Exception (const Exception &cause, const std::string &method) | |
sets method and remembers the cause can be used for an exception-traces | |
Exception (const Exception &cause, const std::string &method, const std::string &description) | |
sets method and description remembers the cause can be used for an exception-traces | |
virtual | ~Exception () |
dtor | |
const std::string & | method () const |
assignment operator handles self-assignments well | |
const std::string & | description () const |
get the description of the reason for the exception | |
const ExceptionPtr & | cause () const |
get the cause of this exception | |
std::string | toString () const |
convert this exception including the traced ones to a string |
Definition at line 22 of file DCMTree_Exception.h.
DCMTree::Exception::Exception | ( | const std::string & | method | ) |
ctor - sets method to the given value
DCMTree::Exception::Exception | ( | const std::string & | method, |
const std::string & | description | ||
) |
ctor sets method to the given value sets description to the given value
DCMTree::Exception::Exception | ( | const Exception & | other | ) |
copy - ctor uses operator=
DCMTree::Exception::Exception | ( | const Exception & | cause, |
const std::string & | method | ||
) |
sets method and remembers the cause can be used for an exception-traces
DCMTree::Exception::Exception | ( | const Exception & | cause, |
const std::string & | method, | ||
const std::string & | description | ||
) |
sets method and description remembers the cause can be used for an exception-traces
virtual DCMTree::Exception::~Exception | ( | ) | [virtual] |
dtor
const ExceptionPtr& DCMTree::Exception::cause | ( | ) | const |
get the cause of this exception
const std::string& DCMTree::Exception::description | ( | ) | const |
get the description of the reason for the exception
const std::string& DCMTree::Exception::method | ( | ) | const |
assignment operator handles self-assignments well
get the method value (method where the exception has been thrown)
std::string DCMTree::Exception::toString | ( | ) | const |
convert this exception including the traced ones to a string