Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addCatchBlock/after4.java
2013-05-06 20:55:21 +02:00

16 lines
371 B
Java

// "Add Catch Clause(s)" "true"
class MyException1 extends Exception {}
class MyException2 extends Exception {}
class Test {
void foo () throws MyException1, MyException2 {}
void bar () {
try {
foo();
} catch (MyException1 e) {
} catch (MyException2 myException2) {
<caret><selection>myException2.printStackTrace();</selection>
}
}
}