Merge pull request #21083 from 3x380V/exception-stage-1

Base: simplify Exception
This commit is contained in:
Benjamin Nauck
2025-05-06 09:29:45 +02:00
committed by GitHub
129 changed files with 747 additions and 1481 deletions

View File

@@ -219,7 +219,7 @@ private:
str += "FreeCAD exception thrown (";
str += e.what();
str += ")";
e.ReportException();
e.reportException();
throw Py::RuntimeError(str);
}
catch (const std::exception &e) {

View File

@@ -100,7 +100,7 @@ private:
str += "FreeCAD exception thrown (";
str += e.what();
str += ")";
e.ReportException();
e.reportException();
throw Py::RuntimeError(str);
}
catch (const std::exception &e) {

View File

@@ -443,7 +443,7 @@ bool DrawGuiUtil::isDraftObject(App::DocumentObject* obj)
}
catch (Py::Exception&) {
Base::PyException e; // extract the Python error text
e.ReportException();
e.reportException();
result = false;
}
}
@@ -474,7 +474,7 @@ bool DrawGuiUtil::isArchObject(App::DocumentObject* obj)
}
catch (Py::Exception&) {
Base::PyException e; // extract the Python error text
e.ReportException();
e.reportException();
result = false;
}
}
@@ -505,7 +505,7 @@ bool DrawGuiUtil::isArchSection(App::DocumentObject* obj)
}
catch (Py::Exception&) {
Base::PyException e; // extract the Python error text
e.ReportException();
e.reportException();
result = false;
}
}