Files
Rustam Vishnyakov 123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00

13 lines
359 B
Java

class ErrorTest {
public static <E1 extends Throwable> void rethrow(Thrower<? extends E1> thrower) {
try {
thrower.doThrow();
}
catch (Throwable e) {
<error descr="Unhandled exception: E1">throw e;</error>
}
}
interface Thrower<E extends Throwable> {
void doThrow() throws E;
}
}