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

@@ -42,6 +42,7 @@
#include <Base/Placement.h>
#include <Base/Tools.h>
#include <Mod/Part/App/TopoShape.h>
#include "FeatureRevolution.h"
@@ -157,7 +158,7 @@ App::DocumentObjectExecReturn *Revolution::execute(void)
BRepAlgoAPI_Fuse mkFuse(base, result);
// Let's check if the fusion has been successful
if (!mkFuse.IsDone())
throw Base::Exception("Fusion with base feature failed");
throw Part::BooleanException("Fusion with base feature failed");
result = mkFuse.Shape();
result = refineShapeIfActive(result);
}