Base: rename Exception's PascalCase methods to camelCase
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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()),
|
||||
|
||||
@@ -396,7 +396,7 @@ void DlgMacroExecuteImp::accept()
|
||||
// handle SystemExit exceptions
|
||||
Base::PyGILStateLocker locker;
|
||||
Base::PyException e;
|
||||
e.ReportException();
|
||||
e.reportException();
|
||||
getMainWindow()->unsetCursor();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user