Skip to content

Commit d3bd2c4

Browse files
committed
BAEL-3840 Fix example for section 2.1.
1 parent cc68549 commit d3bd2c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core-java-modules/core-java-exceptions-2/src/main/java/com/baeldung/suppressed/SuppressedExceptionsDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static void demoSuppressedException(String filePath) throws IOException {
1010
try {
1111
fileIn = new FileInputStream(filePath);
1212
} catch (IOException e) {
13-
13+
throw new IOException(e.getMessage());
1414
} finally {
1515
fileIn.close();
1616
}

0 commit comments

Comments
 (0)