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)
 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 Exceptioncause () const
 Returns the cause of this exception. More...
 
std::string toString () const
 Converts 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)

Constructor - sets method to the given value.

◆ Exception() [3/5]

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

Constructor 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 trace.

◆ 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 trace.

Member Function Documentation

◆ cause()

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

Returns the cause of this exception.

◆ description()

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

Returns the description of the reason for the exception.

◆ method()

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

Returns the method value (i.e., method where the exception has been thrown).

◆ toString()

std::string DCMTree::Exception::toString ( ) const

Converts this exception including the traced ones to a string.


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