FREEDM DGI
PlugNPlayExceptions.hpp
Go to the documentation of this file.
1 
23 #include <stdexcept>
24 
25 namespace freedm {
26 namespace broker {
27 namespace device {
28 
31  : virtual std::runtime_error
32 {
33  explicit EBadRequest(const std::string& what)
34  : std::runtime_error(what) { }
35 };
36 
39  : virtual std::runtime_error
40 {
41  explicit EDgiConfigError(const std::string& what)
42  : std::runtime_error(what) { }
43 };
44 
47  : virtual std::runtime_error
48 {
49  explicit EDuplicateSession(const std::string& what)
50  : std::runtime_error(what) { }
51 };
52 
53 } // namespace device
54 } // namespace broker
55 } // namespace freedm
EDgiConfigError(const std::string &what)
Definition: PlugNPlayExceptions.hpp:41
STL namespace.
Used when a device controller sends a bad packet.
Definition: PlugNPlayExceptions.hpp:30
EBadRequest(const std::string &what)
Definition: PlugNPlayExceptions.hpp:33
EDuplicateSession(const std::string &what)
Definition: PlugNPlayExceptions.hpp:49
General FREEDM Namespace.
Definition: CBroker.cpp:53
Used when the DGI has been misconfigured.
Definition: PlugNPlayExceptions.hpp:38
Used when the adapter factory already has an open session for a controller.
Definition: PlugNPlayExceptions.hpp:46