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

@@ -946,7 +946,7 @@ void Document::slotNewObject(const App::DocumentObject& Obj)
FC_ERR("Memory exception in " << Obj.getFullName() << " thrown: " << e.what());
}
catch(Base::Exception &e){
e.ReportException();
e.reportException();
}
#ifndef FC_DEBUG
catch(...){
@@ -957,7 +957,7 @@ void Document::slotNewObject(const App::DocumentObject& Obj)
try {
pcProvider->reattach(const_cast<App::DocumentObject*>(&Obj));
} catch(Base::Exception &e){
e.ReportException();
e.reportException();
}
}
@@ -1062,7 +1062,7 @@ void Document::slotChangedObject(const App::DocumentObject& Obj, const App::Prop
FC_ERR("Memory exception in " << Obj.getFullName() << " thrown: " << e.what());
}
catch(Base::Exception& e){
e.ReportException();
e.reportException();
}
catch(const std::exception& e){
FC_ERR("C++ exception in " << Obj.getFullName() << " thrown " << e.what());
@@ -1441,7 +1441,7 @@ bool Document::save()
}
}
catch (const Base::FileException& e) {
e.ReportException();
e.reportException();
return askIfSavingFailed(QString::fromUtf8(e.what()));
}
catch (const Base::Exception& e) {
@@ -1489,7 +1489,7 @@ bool Document::saveAs()
getMainWindow()->appendRecentFile(fi.filePath());
}
catch (const Base::FileException& e) {
e.ReportException();
e.reportException();
return askIfSavingFailed(QString::fromUtf8(e.what()));
}
catch (const Base::Exception& e) {
@@ -1511,7 +1511,7 @@ void Document::saveAll()
docs = App::Document::getDependentDocuments(App::GetApplication().getDocuments(),true);
}
catch(Base::Exception &e) {
e.ReportException();
e.reportException();
int ret = QMessageBox::critical(getMainWindow(), QObject::tr("Failed to save document"),
QObject::tr("Documents contains cyclic dependencies. Do you still want to save them?"),
QMessageBox::Yes,QMessageBox::No);