Exceptions.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
14 #ifndef HH_SENF_Packets_80221Bundle_Exceptions_
15 #define HH_SENF_Packets_80221Bundle_Exceptions_ 1
16 
17 // Custom includes
18 
19 //-/////////////////////////////////////////////////////////////////////////////////////////////////
20 
21 namespace senf {
22 
24  {
25  MIHLengthException(std::string const & description)
26  : senf::Exception("MIHLengthException: ") { append(description); }
27  };
28 
30  {
31  InvalidMIHPacketException(std::string const & description)
32  : senf::Exception("Invalid MIH message: ") { append(description); }
33  };
34 }
35 
36 //-/////////////////////////////////////////////////////////////////////////////////////////////////
37 //#include "Exceptions.cci"
38 //#include "Exceptions.ct"
39 //#include "Exceptions.cti"
40 #endif
41 
42 
43 // Local Variables:
44 // mode: c++
45 // fill-column: 100
46 // c-file-style: "senf"
47 // indent-tabs-mode: nil
48 // ispell-local-dictionary: "american"
49 // compile-command: "scons -u test"
50 // comment-column: 40
51 // End:
void append(std::string text)
InvalidMIHPacketException(std::string const &description)
Definition: Exceptions.hh:31
MIHLengthException(std::string const &description)
Definition: Exceptions.hh:25