import java.io.FileNotFoundException; import java.io.IOException; // "Add 'catch' clause(s)" "true-preview" class CatchExceptions { void foo() throws java.io.IOException, java.io.FileNotFoundException { } void bar() { try { foo(); } catch (FileNotFoundException e) { throw new RuntimeException(e); } catch (IOException e) { throw new RuntimeException(e); } } }