MCPcopy Create free account
hub / github.com/pybind/pybind11 / what

Method what

tests/test_exceptions.cpp:48–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46public:
47 explicit MyException3(const char *m) : message{m} {}
48 virtual const char *what() const noexcept { return message.c_str(); }
49 // Rule of 5 BEGIN: to preempt compiler warnings.
50 MyException3(const MyException3 &) = default;
51 MyException3(MyException3 &&) = default;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected