Replace Base::Exception with appropriate subclass
This commit is contained in:
@@ -85,7 +85,7 @@ Standard_Integer FeatureImportIges::Execute(void)
|
||||
|
||||
// read iges-file
|
||||
if (aReader.ReadFile((const Standard_CString)FileName.c_str()) != IFSelect_RetDone)
|
||||
throw Base::Exception("IGES read failed (load file)");
|
||||
throw Base::FileException("IGES read failed (load file)");
|
||||
|
||||
// check iges-file (memory)
|
||||
//if (!aReader.Check(Standard_True))
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -317,7 +317,7 @@ Mesh::MeshObject* Mesher::createMesh() const
|
||||
}
|
||||
|
||||
#ifndef HAVE_SMESH
|
||||
throw Base::Exception("SMESH is not available on this platform");
|
||||
throw Base::RuntimeError("SMESH is not available on this platform");
|
||||
#else
|
||||
std::list<SMESH_Hypothesis*> hypoth;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user