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

Method what

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

Source from the content-addressed store, hash-verified

22public:
23 explicit MyException(const char *m) : message{m} {}
24 const char *what() const noexcept override { return message.c_str(); }
25
26private:
27 std::string message = "";

Callers 5

TEST_SUBMODULEFunction · 0.45
PYBIND11_MODULEFunction · 0.45
test_class.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected