Began refactoring the entire source tree.
[aesalon.git] / include / common / Exception.h
blob859d0bb25a410eb22d0e1eff009e9b940481ec3a
1 /**
2 Aesalon, a tool to visualize a program's behaviour at run-time.
3 Copyright (C) 2010, Aesalon Development Team.
5 Aesalon is distributed under the terms of the GNU GPLv3. For more
6 licensing information, see the file LICENSE included with the distribution.
8 @file include/common/Exception.h
12 #ifndef AesalonCommon_Exception_H
13 #define AesalonCommon_Exception_H
15 #include <string>
17 namespace Common {
19 class Exception {
20 private:
21 std::string m_message;
22 public:
23 Exception(std::string message) : m_message(message) {}
24 virtual ~Exception() {}
26 const std::string &message() const { return m_message; }
29 } // namespace Common
31 #endif