Continued ripping up the source.
[aesalon.git] / monitor / src / misc / Exception.h
blob79ebf3bfba1a99545943e58b5fbeb8e25a00eaea
1 #ifndef AESALON_EXCEPTION_H
2 #define AESALON_EXCEPTION_H
4 #include <string>
6 namespace Aesalon {
7 namespace Misc {
9 /** Basic exception class, stores a message. Constuctor can be overloaded in
10 derived classes for more specific messages. */
11 class Exception {
12 private:
13 std::string message;
14 public:
15 Exception(std::string message) : message(message) {}
17 std::string get_message() const { return message; }
20 } // namespace Misc
21 } // namespace Aesalon
23 #endif