Junior — Senior
Determining which exception will be thrown when there is a throw in try, catch, and finally blocks
livecode
Task condition
It is necessary to find out which specific exception will be thrown if the throw operator is used in each of the blocks — try, catch, and finally.
void runTask() {
try {
// ... throw new E1(...);
} catch (E1 ex1) {
// ... throw new E2(...);
} finally {
// ... throw new E3(...);
}
}