Base: rename Exception's PascalCase methods to camelCase

This commit is contained in:
Ladislav Michl
2025-05-01 10:14:18 +02:00
parent bf4ace0957
commit 9683cf1e4f
128 changed files with 394 additions and 394 deletions

View File

@@ -138,12 +138,12 @@ void DlgAddProperty::accept()
(*it)->addDynamicProperty(type.c_str(),name.c_str(),
group.c_str(),ui->edtDoc->toPlainText().toUtf8().constData());
} catch(Base::Exception &e) {
e.ReportException();
e.reportException();
for(auto it2=containers.begin();it2!=it;++it2) {
try {
(*it2)->removeDynamicProperty(name.c_str());
} catch(Base::Exception &e) {
e.ReportException();
e.reportException();
}
}
QMessageBox::critical(getMainWindow(),

View File

@@ -460,7 +460,7 @@ bool DlgAddPropertyVarSet::createProperty()
group.c_str(), doc.c_str());
}
catch (Base::Exception& e) {
e.ReportException();
e.reportException();
critical(QObject::tr("Add property"),
QObject::tr("Failed to add property to '%1': %2").arg(
QString::fromLatin1(varSet->getFullName().c_str()),

View File

@@ -396,7 +396,7 @@ void DlgMacroExecuteImp::accept()
// handle SystemExit exceptions
Base::PyGILStateLocker locker;
Base::PyException e;
e.ReportException();
e.reportException();
getMainWindow()->unsetCursor();
}
}

View File

@@ -345,7 +345,7 @@ void DlgPreferencesImp::createPageInGroup(PreferencesPageItem *groupItem, const
}
catch (const Base::Exception& e) {
Base::Console().Error("Base exception thrown for '%s'\n", pageName.c_str());
e.ReportException();
e.reportException();
}
catch (const std::exception& e) {
Base::Console().Error("C++ exception thrown for '%s' (%s)\n", pageName.c_str(), e.what());