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