MeVisLab Toolbox Reference
DCMTree::Exception Class Reference

Exception class for DCMTree. More...

#include <DCMTree_Exception.h>

Public Member Functions

 Exception ()=default
 
virtual ~Exception ()
 
 Exception (const std::string &method)
 ctor - sets method to the given value More...
 
 Exception (const std::string &method, const std::string &description)
 ctor sets method to the given value sets description to the given value More...
 
 Exception (const Exception &cause, const std::string &method)
 sets method and remembers the cause can be used for an exception-traces More...
 
 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 More...
 
const std::string & method () const
 get the method value (method where the exception has been thrown) More...
 
const std::string & description () const
 get the description of the reason for the exception More...
 
std::shared_ptr< const Exceptioncause () const
 get the cause of this exception More...
 
std::string toString () const
 convert this exception including the traced ones to a string More...
 

Detailed Description

Exception class for DCMTree.

Definition at line 25 of file DCMTree_Exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/5]

DCMTree::Exception::Exception ( )
default

◆ ~Exception()

virtual DCMTree::Exception::~Exception ( )
virtual

◆ Exception() [2/5]

DCMTree::Exception::Exception ( const std::string &  method)

ctor - sets method to the given value

◆ Exception() [3/5]

DCMTree::Exception::Exception ( const std::string &  method,
const std::string &  description 
)

ctor sets method to the given value sets description to the given value

◆ Exception() [4/5]

DCMTree::Exception::Exception ( const Exception cause,
const std::string &  method 
)

sets method and remembers the cause can be used for an exception-traces

◆ Exception() [5/5]

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

Member Function Documentation

◆ cause()

std::shared_ptr<const Exception> DCMTree::Exception::cause ( ) const

get the cause of this exception

◆ description()

const std::string& DCMTree::Exception::description ( ) const

get the description of the reason for the exception

◆ method()

const std::string& DCMTree::Exception::method ( ) const

get the method value (method where the exception has been thrown)

◆ toString()

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: