Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 17:19:30 +01:00
parent e22ab44e61
commit 145cefb131
5 changed files with 8 additions and 8 deletions

View File

@@ -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");
}