mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
20 lines
308 B
Java
20 lines
308 B
Java
|
|
class A1 extends Exception {}
|
|
|
|
class A2 extends Exception {}
|
|
|
|
class BA1 extends A1 {}
|
|
|
|
class ErrorTest {
|
|
public void testNok(boolean mode) throws BA1, A2 {
|
|
try {
|
|
if (mode) {
|
|
throw new BA1();
|
|
} else {
|
|
throw new A2();
|
|
}
|
|
} catch (A1 ex) {
|
|
throw ex;
|
|
}
|
|
}
|
|
} |