Introduce version 0.1
[dueringa_WikiWalker.git] / src / WalkerException.h
blob29a49c64970c9b7f3a0c2e6c38ccccbe3ff5acb3
1 //! \file WalkerException.h
3 #ifndef _WALKEREXCEPTION_H
4 #define _WALKEREXCEPTION_H
6 #include <string>
8 //! (base) class for exceptions in uvok/WikiWalker
9 class WalkerException : public std::exception
11 public:
12 /*! Create a Walker exception with a message.
14 * Message might be shown on exception occurring, depending on
15 * the compiler.
17 * \param exmessage The exception message.
19 WalkerException(std::string exmessage)
20 : message(exmessage) {}
22 virtual ~WalkerException() throw() {}
24 //! get exception message
25 const char* what() const noexcept
27 return message.c_str();
30 private:
31 std::string message;
34 #endif // _WALKEREXCEPTION_H