mirror of
https://github.com/AdaCore/why3.git
synced 2026-02-12 12:34:55 -08:00
21 lines
470 B
Java
21 lines
470 B
Java
|
|
/* This file has been extracted from module ExceptionCatch. */
|
||
|
|
import java.util.NoSuchElementException;
|
||
|
|
public class ExceptionCatch {
|
||
|
|
|
||
|
|
public static int noRaise(int i) throws Exception1 {
|
||
|
|
|
||
|
|
try {
|
||
|
|
return ExceptionThrow.func(i);
|
||
|
|
} catch (IndexOutOfBoundsException eX) {
|
||
|
|
return i;
|
||
|
|
} catch (NoSuchElementException eX) {
|
||
|
|
return i;
|
||
|
|
}
|
||
|
|
catch (Exception2 us) {
|
||
|
|
throw new RuntimeException("unreachable statement");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|