Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 17:19:30 +01:00
parent e22ab44e61
commit 145cefb131
5 changed files with 8 additions and 8 deletions

View File

@@ -141,7 +141,7 @@ bool TaskDlgFemConstraintInitialTemperature::accept()
try {
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.recompute()");
if (!ConstraintView->getObject()->isValid())
throw Base::Exception(ConstraintView->getObject()->getStatusString());
throw Base::RuntimeError(ConstraintView->getObject()->getStatusString());
Gui::Command::doCommand(Gui::Command::Gui,"Gui.activeDocument().resetEdit()");
Gui::Command::commitCommand();
}