From c5628db861b753d1eeaf67c2f5c05f4f31d2dfda Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Nov 2015 21:54:52 +0000 Subject: Add doxygen comments --- libadhocutil/exception.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libadhocutil/exception.h b/libadhocutil/exception.h index a63439b..fd4263c 100644 --- a/libadhocutil/exception.h +++ b/libadhocutil/exception.h @@ -6,9 +6,11 @@ #include namespace AdHoc { + /// Helper class for lazy creation of exception message text. template class Exception : public BaseException { public: + /// Override of std::exception::what() to create text as required. inline const char * what() const throw() override { if (!msg) { @@ -18,6 +20,7 @@ namespace AdHoc { } private: + /// Message text provider. virtual std::string message() const throw() = 0; mutable boost::optional msg; }; -- cgit v1.2.3