Replace Base::Exception with appropriate subclass
This commit is contained in:
@@ -132,7 +132,7 @@ void FemPostPipeline::read(Base::FileInfo File) {
|
||||
|
||||
// checking on the file
|
||||
if (!File.isReadable())
|
||||
throw Base::Exception("File to load not existing or not readable");
|
||||
throw Base::FileException("File to load not existing or not readable", File);
|
||||
|
||||
if (File.hasExtension("vtu"))
|
||||
readXMLFile<vtkXMLUnstructuredGridReader>(File.filePath());
|
||||
@@ -147,7 +147,7 @@ void FemPostPipeline::read(Base::FileInfo File) {
|
||||
else if (File.hasExtension("vtk"))
|
||||
readXMLFile<vtkDataSetReader>(File.filePath());
|
||||
else
|
||||
throw Base::Exception("Unknown extension");
|
||||
throw Base::FileException("Unknown extension");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user