MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / setPyException

Method setPyException

src/Base/Exception.cpp:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void Exception::setPyException() const
145{
146 PyObject* exc = getPyExceptionType();
147 if (!exc) {
148 exc = PyExc_FC_GeneralError;
149 }
150
151 PyErr_SetString(exc, what());
152}
153
154// ---------------------------------------------------------
155

Callers 15

setAmbientColorMethod · 0.45
setDiffuseColorMethod · 0.45
setEmissiveColorMethod · 0.45
setSpecularColorMethod · 0.45
sLoadFileMethod · 0.45
sSetActiveDocumentMethod · 0.45
PyInitMethod · 0.45
setEulerAnglesMethod · 0.45
importFromMethod · 0.45
insertMethod · 0.45
exportToMethod · 0.45
getGroupMethod · 0.45

Calls 2

getPyExceptionTypeFunction · 0.85
whatFunction · 0.85

Tested by

no test coverage detected