mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
class MyException extends Exception{
|
||||
}
|
||||
|
||||
class MyException1 extends Exception{
|
||||
}
|
||||
|
||||
class Test {
|
||||
void foo<caret> () throws MyException,
|
||||
MyException1 {
|
||||
}
|
||||
|
||||
void bar () {
|
||||
try {
|
||||
foo();
|
||||
}
|
||||
catch (MyException e) {}
|
||||
catch (MyException1 myException1) {}
|
||||
}
|
||||
}
|
||||
|
||||
class Derived extends Test {
|
||||
void foo() throws MyException,
|
||||
MyException1 {
|
||||
|
||||
}
|
||||
|
||||
void bar () {
|
||||
try {
|
||||
foo();
|
||||
}
|
||||
catch (MyException e) {}
|
||||
catch (MyException1 myException1) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user