Base: rename Exception's PascalCase methods to camelCase
This commit is contained in:
@@ -94,7 +94,7 @@ App::DocumentObjectExecReturn* Feature::recompute()
|
||||
}
|
||||
catch (Base::Exception& e) {
|
||||
failed = true;
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
FC_ERR("Failed to recompute suppressed feature " << getFullName());
|
||||
}
|
||||
|
||||
|
||||
@@ -2089,7 +2089,7 @@ App::DocumentObjectExecReturn* Hole::execute()
|
||||
msg += std::to_string(i);
|
||||
return new App::DocumentObjectExecReturn(msg.c_str());
|
||||
} catch (Base::Exception &e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
std::string msg(QT_TRANSLATE_NOOP("Exception", "Boolean operation failed on profile Edge"));
|
||||
msg += std::to_string(i);
|
||||
return new App::DocumentObjectExecReturn(msg.c_str());
|
||||
|
||||
@@ -389,7 +389,7 @@ SubShapeBinder::~SubShapeBinder() {
|
||||
clearCopiedObjects();
|
||||
}
|
||||
catch (const Base::ValueError& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -452,7 +452,7 @@ void SubShapeBinder::setupCopyOnChange() {
|
||||
removeDynamicProperty(prop->getName());
|
||||
}
|
||||
catch (Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
catch (...) {
|
||||
}
|
||||
@@ -678,7 +678,7 @@ void SubShapeBinder::update(SubShapeBinder::UpdateOption options) {
|
||||
}
|
||||
}
|
||||
catch (Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
FC_ERR(getFullName() << " failed to obtain shape from "
|
||||
<< obj->getFullName() << '.' << sub);
|
||||
if (errMsg.empty()) {
|
||||
@@ -864,7 +864,7 @@ void SubShapeBinder::slotRecomputedObject(const App::DocumentObject& Obj) {
|
||||
update();
|
||||
}
|
||||
catch (Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -405,7 +405,7 @@ void CmdPartDesignSubShapeBinder::activated(int iMsg)
|
||||
updateActive();
|
||||
commitCommand();
|
||||
} catch (Base::Exception &e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
QMessageBox::critical(Gui::getMainWindow(),
|
||||
QObject::tr("Sub-Shape Binder"), QApplication::translate("Exception", e.what()));
|
||||
abortCommand();
|
||||
@@ -1288,7 +1288,7 @@ void CmdPartDesignGroove::activated(int iMsg)
|
||||
FCMD_OBJ_CMD(Feat,"Reversed = 1");
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
|
||||
finishProfileBased(cmd, sketch, Feat);
|
||||
|
||||
@@ -289,7 +289,7 @@ TaskChamferParameters::~TaskChamferParameters()
|
||||
}
|
||||
catch (const Py::Exception&) {
|
||||
Base::PyException e; // extract the Python error text
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -268,7 +268,7 @@ TaskDraftParameters::~TaskDraftParameters()
|
||||
}
|
||||
catch (const Py::Exception&) {
|
||||
Base::PyException e; // extract the Python error text
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ void TaskDressUpParameters::addAllEdges(QListWidget* widget)
|
||||
pcDressUp->Base.setValue(base, subValues);
|
||||
}
|
||||
catch (Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ void TaskDressUpParameters::tryAddSelection(const std::string& doc,
|
||||
Gui::Selection().addSelection(doc.c_str(), obj.c_str(), sub.c_str(), 0, 0, 0);
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
catch (const Standard_Failure& e) {
|
||||
Base::Console().Error("OCC error: %s\n", e.GetMessageString());
|
||||
|
||||
@@ -334,7 +334,7 @@ void TaskExtrudeParameters::tryRecomputeFeature()
|
||||
recomputeFeature();
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -325,7 +325,7 @@ std::vector<App::DocumentObject*> TaskFeaturePick::buildFeatures()
|
||||
}
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
catch (Py::Exception& e) {
|
||||
// reported by code analyzers
|
||||
|
||||
@@ -172,7 +172,7 @@ TaskFilletParameters::~TaskFilletParameters()
|
||||
}
|
||||
catch (const Py::Exception&) {
|
||||
Base::PyException e; // extract the Python error text
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ void TaskHelixParameters::showCoordinateAxes()
|
||||
vpOrigin->setTemporaryVisibility(Gui::DatumElement::Axes);
|
||||
}
|
||||
catch (const Base::Exception& ex) {
|
||||
ex.ReportException();
|
||||
ex.reportException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -239,7 +239,7 @@ void TaskHelixParameters::addPartAxes()
|
||||
addAxisToCombo(orig->getZ(), "", tr("Base Z axis"));
|
||||
}
|
||||
catch (const Base::Exception& ex) {
|
||||
ex.ReportException();
|
||||
ex.reportException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -528,7 +528,7 @@ void TaskHelixParameters::onAxisChanged(int num)
|
||||
updateStatus();
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -589,7 +589,7 @@ TaskHelixParameters::~TaskHelixParameters()
|
||||
}
|
||||
}
|
||||
catch (const Base::Exception& ex) {
|
||||
ex.ReportException();
|
||||
ex.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -542,7 +542,7 @@ TaskMultiTransformParameters::~TaskMultiTransformParameters()
|
||||
}
|
||||
catch (const Py::Exception&) {
|
||||
Base::PyException exc; // extract the Python error text
|
||||
exc.ReportException();
|
||||
exc.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -165,11 +165,11 @@ TaskPipeParameters::~TaskPipeParameters()
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
// getDocument() may raise an exception
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
catch (const Py::Exception&) {
|
||||
Base::PyException e; // extract the Python error text
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ TaskRevolutionParameters::TaskRevolutionParameters(PartDesignGui::ViewProvider*
|
||||
}
|
||||
}
|
||||
catch (const Base::Exception &ex) {
|
||||
ex.ReportException();
|
||||
ex.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ void TaskRevolutionParameters::fillAxisCombo(bool forceRefill)
|
||||
addAxisToCombo(orig->getY(), std::string(), tr("Base Y axis"));
|
||||
addAxisToCombo(orig->getZ(), std::string(), tr("Base Z axis"));
|
||||
} catch (const Base::Exception &ex) {
|
||||
ex.ReportException();
|
||||
ex.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -578,7 +578,7 @@ void TaskRevolutionParameters::onAxisChanged(int num)
|
||||
recomputeFeature();
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -665,7 +665,7 @@ TaskRevolutionParameters::~TaskRevolutionParameters()
|
||||
}
|
||||
}
|
||||
catch (const Base::Exception &ex) {
|
||||
ex.ReportException();
|
||||
ex.reportException();
|
||||
}
|
||||
|
||||
axesInList.clear();
|
||||
|
||||
@@ -241,7 +241,7 @@ TaskThicknessParameters::~TaskThicknessParameters()
|
||||
}
|
||||
catch (const Py::Exception&) {
|
||||
Base::PyException e; // extract the Python error text
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -531,7 +531,7 @@ void TaskTransformedParameters::hideObject()
|
||||
FCMD_OBJ_HIDE(getTopTransformedObject());
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -541,7 +541,7 @@ void TaskTransformedParameters::showObject()
|
||||
FCMD_OBJ_SHOW(getTopTransformedObject());
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -551,7 +551,7 @@ void TaskTransformedParameters::hideBase()
|
||||
FCMD_OBJ_HIDE(getBaseObject());
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -561,7 +561,7 @@ void TaskTransformedParameters::showBase()
|
||||
FCMD_OBJ_SHOW(getBaseObject());
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -574,7 +574,7 @@ void TaskTransformedParameters::exitSelectionMode()
|
||||
showObject();
|
||||
}
|
||||
catch (Base::Exception& exc) {
|
||||
exc.ReportException();
|
||||
exc.reportException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -403,7 +403,7 @@ void ViewProviderBody::dropObject(App::DocumentObject* obj)
|
||||
body->addObjects(move);
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
}
|
||||
else if (!body->BaseFeature.getValue()) {
|
||||
|
||||
@@ -384,7 +384,7 @@ void ViewProviderSubShapeBinder::updatePlacement(bool transaction) {
|
||||
self->update(PartDesign::SubShapeBinder::UpdateForced);
|
||||
}
|
||||
catch (Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -398,7 +398,7 @@ void ViewProviderSubShapeBinder::updatePlacement(bool transaction) {
|
||||
return;
|
||||
}
|
||||
catch (Base::Exception& e) {
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
std::ostringstream str;
|
||||
|
||||
Reference in New Issue
Block a user