DCCL v3
exception.h
1 // Copyright 2009-2017 Toby Schneider (http://gobysoft.org/index.wt/people/toby)
2 // GobySoft, LLC (for 2013-)
3 // Massachusetts Institute of Technology (for 2007-2014)
4 // Community contributors (see AUTHORS file)
5 //
6 //
7 // This file is part of the Dynamic Compact Control Language Library
8 // ("DCCL").
9 //
10 // DCCL is free software: you can redistribute it and/or modify
11 // it under the terms of the GNU Lesser General Public License as published by
12 // the Free Software Foundation, either version 2.1 of the License, or
13 // (at your option) any later version.
14 //
15 // DCCL is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public License
21 // along with DCCL. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef Exception20100812H
23 #define Exception20100812H
24 
25 #include <stdexcept>
26 
27 namespace dccl
28 {
30  class Exception : public std::runtime_error {
31  public:
32  Exception(const std::string& s)
33  : std::runtime_error(s)
34  { }
35 
36  };
37 
40  {
41  public:
43  : Exception("NULL Value")
44  { }
45  };
46 
47 }
48 
49 
50 #endif
51 
Exception used to signal null (non-existent) value within field codecs during decode.
Definition: exception.h:39
Dynamic Compact Control Language namespace.
Exception class for DCCL.
Definition: exception.h:30