Pass title by const reference
[dueringa_WikiWalker.git] / inc / WalkerException.h
blobc816dc73401e333b8b60d683e38eba932f38c810
1 //! \file WalkerException.h
3 #ifndef WIKIWALKER_WALKEREXCEPTION_H
4 #define WIKIWALKER_WALKEREXCEPTION_H
6 #include <stdexcept>
7 #include <string>
9 namespace WikiWalker
11 //! (base) class for exceptions in WikiWalker
12 class WalkerException : public std::runtime_error
14 public:
15 /*! Create a Walker exception with a message.
17 * Message might be shown on exception occurring, depending on
18 * the compiler.
20 * \param exmessage The exception message.
22 explicit WalkerException(const std::string& exmessage)
23 : runtime_error(exmessage)
27 } // namespace WikiWalker
28 #endif // WIKIWALKER_WALKEREXCEPTION_H