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

Function pyThrowWrappedBaseException

src/Base/PyException.cpp:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126{
127
128void pyThrowWrappedBaseException(const Base::Exception& e, bool report)
129{
130 if (report) {
131 e.reportException();
132 }
133 throw Py::Exception(e.getPyExceptionType(), fmt::format("FreeCAD exception thrown ({})", e.what()));
134}
135
136void pyThrowWrappedStdException(const std::exception& e, bool report)
137{

Callers 2

pyWrapCppExceptionsFunction · 0.85
pyWrapCppExceptionsFunction · 0.85

Calls 5

getPyExceptionTypeMethod · 0.80
ExceptionClass · 0.50
formatFunction · 0.50
reportExceptionMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected