handle possible crashes with FaceMaker and fix a few coding flaws

This commit is contained in:
wmayer
2016-10-02 14:47:59 +02:00
parent 679bb2f5a8
commit da406cddb8
11 changed files with 48 additions and 28 deletions

View File

@@ -136,7 +136,7 @@ std::unique_ptr<Part::FaceMaker> Part::FaceMaker::ConstructFromType(const char*
if (fmType.isBad()){
std::stringstream ss;
ss << "Class '"<< className <<"' not found.";
throw Base::Exception(ss.str().c_str());
throw Base::TypeError(ss.str().c_str());
}
return Part::FaceMaker::ConstructFromType(fmType);
}