import java.io.FileNotFoundException; import java.io.IOException; class MyTest { public void foo() { try { bar(); } catch (FileNotFoundException e) { throw e; } catch (IOException ignored) { } } private void bar() throws IOException, RuntimeException { } }