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 };
58 virtual const
char*
what() const noexcept;
61 OFCondition _condition;
Base class for odil exceptions.
Definition Exception.h:22
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.
OFCondition const & get_condition() const
Return the condition that was used to create this exception.
virtual const char * what() const noexcept
Return the reason for the exception.
Source get_source() const
Return the exception source.
Exception(std::string const &message)
Message string constructor, set the source to Source::Message.
Definition conversion.h:25
Definition Cancellation.h:21
Definition Association.h:25
#define ODIL_API
Definition odil.h:28