PD: handle Base::Exception in Loft::execute

This commit is contained in:
wmayer
2021-12-15 16:24:42 +01:00
parent 5bef110491
commit b428fb2afa

View File

@@ -298,9 +298,11 @@ App::DocumentObjectExecReturn *Loft::execute(void)
return App::DocumentObject::StdReturn;
}
catch (Standard_Failure& e) {
return new App::DocumentObjectExecReturn(e.GetMessageString());
}
catch (const Base::Exception& e) {
return new App::DocumentObjectExecReturn(e.what());
}
catch (...) {
return new App::DocumentObjectExecReturn("Loft: A fatal error occurred when making the loft");
}