Files
openide/java/java-tests/testData/codeInsight/completion/normal/UnhandledCheckedExceptionsWithParents_after.java
Mikhail Pyltsin ab78cc0642 [java-completion] IJ-CR-129761 IDEA-349764 Suggest a full catch section
- catch sections are added automatically

GitOrigin-RevId: 7bb37aec0207d152d31b0c78cc91657f80036719
2024-04-03 13:32:55 +00:00

22 lines
425 B
Java

class X{
class CheckedException extends Exception {
}
class CheckedException1 extends CheckedException {
}
class CheckedException2 extends CheckedException {
}
public void test() {
try {
method1();
throw new CheckedException2();
} catch (CheckedException e) {
} catch (Exception e) {
<caret>
}
}
private void method1() throws CheckedException1{
}
}