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

Function exception

include/pybind11/pybind11.h:3591–3591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3589class exception : public object {
3590public:
3591 exception() = default;
3592 exception(handle scope, const char *name, handle base = PyExc_Exception) {
3593 std::string full_name
3594 = scope.attr("__name__").cast<std::string>() + std::string(".") + name;

Callers

nothing calls this directly

Calls 4

hasattrFunction · 0.85
attrMethod · 0.80
ptrMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected