mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
16 lines
446 B
Java
16 lines
446 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(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
|
}
|
|
}
|
|
} |