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

Class LocalException

tests/local_bindings.h:41–48  ·  view source on GitHub ↗

Exception that will be caught via the module local translator.

Source from the content-addressed store, hash-verified

39
40// Exception that will be caught via the module local translator.
41class LocalException : public std::exception {
42public:
43 explicit LocalException(const char *m) : message{m} {}
44 const char *what() const noexcept override { return message.c_str(); }
45
46private:
47 std::string message = "";
48};
49
50// Exception that will be registered with register_local_exception_translator
51class LocalSimpleException : public std::exception {

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