Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
interleaved_error_already_set
Function · 0.70
TEST_SUBMODULE
Function · 0.70
conv
Function · 0.70
PYBIND11_MODULE
Function · 0.70
TEST_SUBMODULE
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected