Hello.
I don't really understand what happens when you throw an exception inside a catch block. What I have understood is that the exception is sent to the method in which the exception that was caught occurs Like:
Code:
try {
aMethod(); //In this method exception1 occurs
} catch(Exception1 e) {
throw new Exception2();
}
Does Exception2 get sent to
aMethod? If so what happens next? What if the same exception
Exception1 is thrown in that catch block and is sent to
aMethod again? Will it be caught again by the same catch block and end up repeating an infinite number of iterations?
I got a bit confused with this part of chapter 7. Any help will be apreciated.
Remember, remember the 5th of November. The gunpowder, treason, and plot. I know of no reason why the gunpowder treason should ever be forgot.