Replace Base::Exception with appropriate subclass
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user