Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 19:28:00 +01:00
parent 21d01fe6fc
commit 00de5bb7ad
23 changed files with 116 additions and 115 deletions

View File

@@ -133,7 +133,7 @@ bool ViewProvider::setEdit(int ModNum)
if (!featureDlg) {
featureDlg = this->getEditDialog();
if (!featureDlg) { // Shouldn't generally happen
throw Base::Exception ("Failed to create new edit dialog.");
throw Base::RuntimeError ("Failed to create new edit dialog.");
}
}
@@ -146,7 +146,7 @@ bool ViewProvider::setEdit(int ModNum)
TaskDlgFeatureParameters *ViewProvider::getEditDialog() {
throw Base::Exception("getEditDialog() not implemented");
throw Base::NotImplementedError("getEditDialog() not implemented");
}