Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 19:42:10 +01:00
parent 00de5bb7ad
commit d7ec2b1368
16 changed files with 41 additions and 41 deletions

View File

@@ -390,7 +390,7 @@ TopoDS_Face DrawViewSection::projectFace(const TopoDS_Shape &face,
const Base::Vector3d &direction)
{
if(face.IsNull()) {
throw Base::Exception("DrawViewSection::projectFace - input Face is NULL");
throw Base::ValueError("DrawViewSection::projectFace - input Face is NULL");
}
Base::Vector3d origin(faceCenter.X(),faceCenter.Y(),faceCenter.Z());