MCPcopy Create free account
hub / github.com/comaps/comaps / RootException

Class RootException

libs/base/exception.hpp:10–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <string>
9
10class RootException : public std::exception
11{
12public:
13 RootException(char const * what, std::string const & msg);
14
15 virtual ~RootException() noexcept = default;
16
17 std::string const & Msg() const { return m_msg; }
18
19 // std::exception overrides:
20 char const * what() const noexcept override { return m_whatWithAscii.c_str(); }
21
22private:
23 std::string m_whatWithAscii;
24 std::string m_msg;
25};
26
27template <typename Fn, typename... Args>
28std::invoke_result_t<Fn &&, Args &&...> ExceptionCatcher(std::string const & comment, bool & exceptionWasThrown,

Callers 4

FuncThrowsRootExceptionFunction · 0.85
UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 4

FuncThrowsRootExceptionFunction · 0.68
UNIT_TESTFunction · 0.68