MCPcopy Create free account
hub / github.com/catchorg/Catch2 / CustomException

Class CustomException

tests/SelfTest/UsageTests/Exception.tests.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 class CustomException {
38 public:
39 explicit CustomException(const std::string& msg)
40 : m_msg(msg) {}
41
42 std::string const& getMessage() const {
43 return m_msg;
44 }
45
46 private:
47 std::string m_msg;
48 };
49
50 class CustomStdException : public std::exception {
51 public:

Callers 2

throwCustomFunction · 0.85

Calls

no outgoing calls

Tested by 1

throwCustomFunction · 0.68