odil
C++11libraryfortheDICOMstandard
Exception.h
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 namespace odil
16 {
17 
19 class Exception: public std::exception
20 {
21 public:
23  Exception(std::string const & message="");
24 
26  virtual ~Exception() throw();
27 
29  virtual const char* what() const throw();
30 
31 protected:
33  std::string _message;
34 };
35 
36 }
37 
38 #endif // _b9607695_cb3b_4188_8caa_bc8bb051ef28
std::string _message
Message of the exception.
Definition: Exception.h:33
Base class for odil exceptions.
Definition: Exception.h:19
Definition: Association.cpp:39
virtual ~Exception()
Destructor.
Definition: Exception.cpp:25
virtual const char * what() const
Return the reason for the exception.
Definition: Exception.cpp:32
Exception(std::string const &message="")
Message string constructor.
Definition: Exception.cpp:18