mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
20 lines
410 B
Java
20 lines
410 B
Java
import java.io.FileNotFoundException;
|
|
import java.io.IOException;
|
|
|
|
// "Add Catch Clause(s)" "true"
|
|
class CatchExceptions {
|
|
|
|
void foo() throws java.io.IOException, java.io.FileNotFoundException {
|
|
|
|
}
|
|
|
|
void bar() {
|
|
try {
|
|
foo();
|
|
} catch (FileNotFoundException e) {
|
|
<selection>e.printStackTrace();</selection>
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
} |