13#ifndef DCM_TREE_EXCEPTION_H
14#define DCM_TREE_EXCEPTION_H
39 Exception (
const std::string &method,
const std::string &description);
67 std::shared_ptr<const Exception>
cause()
const;
76 std::string _description;
77 std::shared_ptr<const Exception> _cause;
Exception class for DCMTree.
std::string toString() const
convert this exception including the traced ones to a string
Exception(const std::string &method, const std::string &description)
ctor sets method to the given value sets description to the given value
const std::string & method() const
get the method value (method where the exception has been thrown)
std::shared_ptr< const Exception > cause() const
get the cause of this exception
const std::string & description() const
get the description of the reason for the 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
Exception(const Exception &cause, const std::string &method)
sets method and remembers the cause can be used for an exception-traces
Exception(const std::string &method)
ctor - sets method to the given value
class to dump a DCMTree dicom message into a human readable file this class could be used as a starte...