exceptions.hpp
Go to the documentation of this file.
1 
6 /*****************************************************************************
7 ** Ifdefs
8 *****************************************************************************/
9 
10 #ifndef mm_messages_EXCEPTIONS_HPP_
11 #define mm_messages_EXCEPTIONS_HPP_
12 
13 /*****************************************************************************
14 ** Includes
15 *****************************************************************************/
16 
17 #include <stdexcept>
18 
19 /*****************************************************************************
20 ** Namespaces
21 *****************************************************************************/
22 
23 namespace mm_messages {
24 
25 /*****************************************************************************
26 ** Interfaces
27 *****************************************************************************/
28 
29 struct MessageRegistrationFailed : public std::logic_error {
30  explicit MessageRegistrationFailed(const std::string& s) : logic_error(s) {}
31 };
32 
33 struct UnregisteredID : public std::runtime_error {
34  explicit UnregisteredID(const std::string& s) : std::runtime_error(s) {
35  }
36 };
37 
38 struct InvalidIDTypeCombination : public std::runtime_error {
39  explicit InvalidIDTypeCombination(const std::string& s) : std::runtime_error(s) {
40  }
41 };
42 
43 struct FailedToFindMessageSpecialisation : public std::logic_error {
44  explicit FailedToFindMessageSpecialisation(const std::string& s) : logic_error(s) {}
45 };
46 
47 } // mm_messages
48 
49 #endif /* mm_messages_EXCEPTIONS_HPP_ */
InvalidIDTypeCombination(const std::string &s)
Definition: exceptions.hpp:39
FailedToFindMessageSpecialisation(const std::string &s)
Definition: exceptions.hpp:44
UnregisteredID(const std::string &s)
Definition: exceptions.hpp:34
MessageRegistrationFailed(const std::string &s)
Definition: exceptions.hpp:30


mm_messages
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:52:10