Skip to content
Snippets Groups Projects
Verified Commit f9a64906 authored by Miles Vella's avatar Miles Vella
Browse files

Catch NoSuchFileException as well

parent d18f54e7
No related branches found
No related tags found
No related merge requests found
Pipeline #124330 failed
......@@ -9,6 +9,7 @@ package de.bmotionstudio.gef.editor.library;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.nio.file.NoSuchFileException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
......@@ -90,7 +91,7 @@ public class ImportImagesAction extends AbstractLibraryAction {
} catch (CoreException e1) {
e1.printStackTrace();
} catch (FileNotFoundException e) {
} catch (FileNotFoundException | NoSuchFileException e) {
e.printStackTrace();
}
......
......@@ -14,6 +14,7 @@ import java.io.FileReader;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.nio.file.NoSuchFileException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
......@@ -405,7 +406,7 @@ public final class LtlCheckingDialog extends TrayDialog {
formulas.select(0);
close();
} catch (FileNotFoundException e) {
} catch (FileNotFoundException | NoSuchFileException e) {
Logger.notifyUser("File not found", e);
} catch (IOException e) {
Logger.notifyUser("Unexpected IO exception", e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment