Add supressed exception for more info 2
This commit is contained in:
parent
e66838cdbc
commit
72264a2e86
|
@ -62,9 +62,9 @@ public class FileHelper {
|
|||
try {
|
||||
Files.move(from, to, StandardCopyOption.REPLACE_EXISTING);
|
||||
} catch (FileNotFoundException | NoSuchFileException ignore) {
|
||||
} catch (IOException ex2) {
|
||||
ex2.addSuppressed(ex);
|
||||
throw ex2;
|
||||
} catch (Throwable t) {
|
||||
t.addSuppressed(ex);
|
||||
throw t;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue