DLS  1.6
Exception.h
1 /******************************************************************************
2  *
3  * This file is part of the Data Logging Service (DLS).
4  *
5  * DLS is free software: you can redistribute it and/or modify it under the
6  * terms of the GNU General Public License as published by the Free Software
7  * Foundation, either version 3 of the License, or (at your option) any later
8  * version.
9  *
10  * DLS is distributed in the hope that it will be useful, but WITHOUT ANY
11  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with DLS. If not, see <http://www.gnu.org/licenses/>.
17  *
18  *****************************************************************************/
19 
20 #ifndef LibDLSExceptionH
21 #define LibDLSExceptionH
22 
23 /*****************************************************************************/
24 
25 #include <string>
26 #include "globals.h"
27 
28 /*****************************************************************************/
29 
30 namespace LibDLS {
31 
32 /*****************************************************************************/
33 
37 {
38  public:
42  Exception(const std::string &pmsg):
43  msg(pmsg) {}
44 
45  std::string msg;
47  private:
50  Exception();
51 };
52 
53 /*****************************************************************************/
54 
55 } // namespace
56 
57 /*****************************************************************************/
58 
59 #endif
Base class for all LibDLS exceptions.
Definition: Exception.h:36
Global data structures and functions.
Exception(const std::string &pmsg)
Constructor.
Definition: Exception.h:42
Definition: Channel.h:44
#define DLS_PUBLIC
Macro for public method definitions (empty on non-win32).
Definition: globals.h:57
std::string msg
Reason for the exception.
Definition: Exception.h:45