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
Converts this exception including the traced ones to a string.
std::shared_ptr< const Exception > cause() const
Returns the cause of this exception.
Exception(const std::string &method, const std::string &description)
Constructor Sets method to the given value.
const std::string & description() const
Returns the description of the reason for the exception.
const std::string & method() const
Returns the method value (i.e., method where the exception has been thrown).
Exception(const Exception &cause, const std::string &method, const std::string &description)
Sets method and description.
Exception(const Exception &cause, const std::string &method)
Sets method and remembers the cause.
Exception(const std::string &method)
Constructor - sets method to the given value.
Class to dump a DCMTree DICOM message into a human-readable file.