Replace Base::Exception with appropriate subclass
This commit is contained in:
@@ -871,7 +871,7 @@ bool TaskDlgPipeParameters::accept()
|
||||
try {
|
||||
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.recompute()");
|
||||
if (!vp->getObject()->isValid())
|
||||
throw Base::Exception(vp->getObject()->getStatusString());
|
||||
throw Base::RuntimeError(vp->getObject()->getStatusString());
|
||||
Gui::Command::doCommand(Gui::Command::Gui,"Gui.activeDocument().resetEdit()");
|
||||
Gui::Command::commitCommand();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user