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;
Base class for odil exceptions.
Definition: Exception.h:22
Definition: Exception.h:25
Source
Source of the Exception: either a message string or an OFCondition.
Definition: Exception.h:31
virtual ~Exception() noexcept
Destructor.
Exception(OFCondition const &condition)
Condition constructor, set the source to Source::Condition.
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