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

Class LocalSimpleException

tests/local_bindings.h:51–58  ·  view source on GitHub ↗

Exception that will be registered with register_local_exception_translator

Source from the content-addressed store, hash-verified

49
50// Exception that will be registered with register_local_exception_translator
51class LocalSimpleException : public std::exception {
52public:
53 explicit LocalSimpleException(const char *m) : message{m} {}
54 const char *what() const noexcept override { return message.c_str(); }
55
56private:
57 std::string message = "";
58};
59
60PYBIND11_MAKE_OPAQUE(LocalVec)
61PYBIND11_MAKE_OPAQUE(LocalVec2)

Callers 2

TEST_SUBMODULEFunction · 0.85
PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by 2

TEST_SUBMODULEFunction · 0.68
PYBIND11_MODULEFunction · 0.68