MCPcopy Create free account
hub / github.com/fmtlib/fmt / my_exception

Class my_exception

test/std-test.cc:363–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361namespace my_ns1 {
362namespace my_ns2 {
363struct my_exception : public std::exception {
364 private:
365 std::string msg;
366
367 public:
368 my_exception(const std::string& s) : msg(s) {}
369 const char* what() const noexcept override;
370};
371const char* my_exception::what() const noexcept { return msg.c_str(); }
372} // namespace my_ns2
373} // namespace my_ns1

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68