mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
22 lines
384 B
Java
22 lines
384 B
Java
// "Create constructor" "true-preview"
|
|
class Test {
|
|
void foo() throws Ex1 {}
|
|
void bar() throws Ex2 {}
|
|
public void t() {
|
|
try {
|
|
foo();
|
|
bar();
|
|
}
|
|
catch (Ex1 | Ex2 e) {
|
|
new A(e);
|
|
}
|
|
}
|
|
}
|
|
|
|
class A {
|
|
public A(Exception e) {
|
|
<selection></selection>
|
|
}
|
|
}
|
|
class Ex1 extends Exception {}
|
|
class Ex2 extends Exception {} |