mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
15 lines
294 B
Java
15 lines
294 B
Java
// "Add exception to existing catch clause" "true"
|
|
import java.io.Exception;
|
|
|
|
class A extends Exception {}
|
|
class B extends A {}
|
|
class C extends A {}
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
try {
|
|
throw<caret> new A();
|
|
} catch (B e) {
|
|
} catch (C e) {
|
|
}
|
|
}
|
|
} |