Odil
A C++11 library for the DICOM standard
|
Go to the documentation of this file.
9 #ifndef _9e106372_aca6_4551_a591_95695eb00e4c
10 #define _9e106372_aca6_4551_a591_95695eb00e4c
12 #include <dcmtk/config/osconfig.h>
13 #include <dcmtk/ofstd/ofcond.h>
31 enum class Source { Message, Condition };
50 OFCondition const & get_condition() const;
58 virtual const
char* what() const noexcept;
61 OFCondition _condition;
68 #endif // _9e106372_aca6_4551_a591_95695eb00e4c
Definition: Exception.h:25
Exception(std::string const &message)
Message string constructor, set the source to Source::Message.
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28
Base class for odil exceptions.
Definition: Exception.h:22
Exception(OFCondition const &condition)
Condition constructor, set the source to Source::Condition.
Source
Source of the Exception: either a message string or an OFCondition.
Definition: Exception.h:31
virtual ~Exception() noexcept
Destructor.