MeVisLab Toolbox Reference
|
Exception class for DCMTree. More...
#include <DCMTree_Exception.h>
Public Member Functions | |
Exception ()=default | |
virtual | ~Exception () |
Exception (const std::string &method) | |
Constructor - sets method to the given value. More... | |
Exception (const std::string &method, const std::string &description) | |
Constructor Sets method to the given value. More... | |
Exception (const Exception &cause, const std::string &method) | |
Sets method and remembers the cause . More... | |
Exception (const Exception &cause, const std::string &method, const std::string &description) | |
Sets method and description . More... | |
const std::string & | method () const |
Returns the method value (i.e., method where the exception has been thrown). More... | |
const std::string & | description () const |
Returns the description of the reason for the exception. More... | |
std::shared_ptr< const Exception > | cause () const |
Returns the cause of this exception. More... | |
std::string | toString () const |
Converts this exception including the traced ones to a string. More... | |
Definition at line 25 of file DCMTree_Exception.h.
|
default |
|
virtual |
DCMTree::Exception::Exception | ( | const std::string & | method | ) |
Constructor - sets method to the given value.
DCMTree::Exception::Exception | ( | const std::string & | method, |
const std::string & | description | ||
) |
Constructor Sets method
to the given value.
Sets description
to the given value.
DCMTree::Exception::Exception | ( | const Exception & | cause, |
const std::string & | method | ||
) |
Sets method
and remembers the cause
.
Can be used for an exception trace.
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 trace.
std::shared_ptr<const Exception> DCMTree::Exception::cause | ( | ) | const |
Returns the cause of this exception.
const std::string& DCMTree::Exception::description | ( | ) | const |
Returns the description of the reason for the exception.
const std::string& DCMTree::Exception::method | ( | ) | const |
Returns the method value (i.e., method where the exception has been thrown).
std::string DCMTree::Exception::toString | ( | ) | const |
Converts this exception including the traced ones to a string.