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

Function raise_err

include/pybind11/detail/internals.h:498–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498inline bool raise_err(PyObject *exc_type, const char *msg) {
499 if (PyErr_Occurred()) {
500 raise_from(exc_type, msg);
501 return true;
502 }
503 set_error(exc_type, msg);
504 return false;
505}
506
507inline void translate_exception(std::exception_ptr p) {
508 if (!p) {

Callers 1

translate_exceptionFunction · 0.85

Calls 2

raise_fromFunction · 0.85
set_errorFunction · 0.50

Tested by

no test coverage detected