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

Function set_error

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

Source from the content-addressed store, hash-verified

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 5

TEST_SUBMODULEFunction · 0.70
convFunction · 0.70
PYBIND11_MODULEFunction · 0.70
TEST_SUBMODULEFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected