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

Function set_error

include/pybind11/pytypes.h:363–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361};
362
363inline void set_error(const handle &type, const char *message) {
364 PyErr_SetString(type.ptr(), message);
365}
366
367inline void set_error(const handle &type, const handle &value) {
368 PyErr_SetObject(type.ptr(), value.ptr());

Callers 13

dispatcherMethod · 0.70
cached_create_moduleFunction · 0.70
operator()Function · 0.70
pybind11.hFile · 0.70
bind_mapFunction · 0.70
raw_arrayMethod · 0.70
numpy.hFile · 0.70
reduce_ex_implFunction · 0.50
raise_errFunction · 0.50
try_translate_exceptionsFunction · 0.50
pybind11_object_initFunction · 0.50
pybind11_getbufferFunction · 0.50

Calls 1

ptrMethod · 0.80

Tested by

no test coverage detected