Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
Exception.h
Go to the documentation of this file.
1/*************************************************************************
2 * odil - Copyright (C) Universite de Strasbourg
3 * Distributed under the terms of the CeCILL-B license, as published by
4 * the CEA-CNRS-INRIA. Refer to the LICENSE file or to
5 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
6 * for details.
7 ************************************************************************/
8
9#ifndef _b9607695_cb3b_4188_8caa_bc8bb051ef28
10#define _b9607695_cb3b_4188_8caa_bc8bb051ef28
11
12#include <exception>
13#include <string>
14
15#include "odil/odil.h"
16
17namespace odil
18{
19
21class ODIL_API Exception: public std::exception
22{
23public:
25 Exception(std::string const & message="");
26
28 virtual ~Exception() noexcept;
29
31 virtual const char* what() const noexcept;
32
33protected:
35 std::string _message;
36};
37
38}
39
40#endif // _b9607695_cb3b_4188_8caa_bc8bb051ef28
Base class for odil exceptions.
Definition Exception.h:22
virtual ~Exception() noexcept
Destructor.
Exception(std::string const &message="")
Message string constructor.
Definition Association.h:25
#define ODIL_API
Definition odil.h:28