MeVisLabToolboxReference
DCMTree::Exception Class Reference

Exception class for DCMTree. More...

#include <DCMTree_Exception.h>

List of all members.

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 ExceptionPtrcause () const
 get the cause of this exception
std::string toString () const
 convert this exception including the traced ones to a string

Detailed Description

Exception class for DCMTree.

Definition at line 22 of file DCMTree_Exception.h.


Constructor & Destructor Documentation

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


Member Function Documentation

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


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