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

Function shared_exception

tests/test_exceptions.h:11–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9public:
10 using builtin_exception::builtin_exception;
11 explicit shared_exception() : shared_exception("") {}
12 void set_error() const override { py::set_error(PyExc_RuntimeError, what()); }
13};

Callers 1

TEST_SUBMODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected