I have two methods:
public void MethodOne()
{
try {
MethodTwo();
}
catch (Exception ex) {
Log.Message("Something went wrong);
throw;
}
}
public void MethodTwo()
{
try {
// Some logic that fails
}
catch (Exception ex) {
throw ex;
}
}
I'm calling MethodTwo from MethodOne. If a exception is thrown in MethodTwo. Will the program terminate after the exception has been handled there or will it bubble up to MethodOne and be catched there aswell?