Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 17:23:48 +01:00
parent 145cefb131
commit c7f881ee43
3 changed files with 4 additions and 4 deletions

View File

@@ -58,11 +58,11 @@ int StepShape::read(const char* fileName)
if (!fi.exists()) {
std::stringstream str;
str << "File '" << fileName << "' does not exist!";
throw Base::Exception(str.str().c_str());
throw Base::FileException(str.str().c_str());
}
if (aReader.ReadFile((Standard_CString)fileName) != IFSelect_RetDone) {
throw Base::Exception("Cannot open STEP file");
throw Base::FileException("Cannot open STEP file");
}
//Standard_Integer ic = Interface_Static::IVal("read.precision.mode");