I am trying to prevent an exception from bubbling up from one nested
Try/Catch Block to its "Parent" Try/Catch Block. Here is some example
code:
try{
try{
//Non-application killing code that causes the exception
}
catch(Exception ex){
//Exception is caught and logged here
}
finally{
//clean up code
}
//Some code that will not run because the exception above does
not get cleared
}
catch(Exception ex){
//Exception from the nested try/catch block gets bubbled up
to this catch block
}
Is this possible? I can't find any way to clear the exception and
continue processing. There are times when I want to continue
processing even when an exception occurs. For example, if I want to
track individuals viewing a web page for marketing purposes, I could
have code on the page to log there page access and then display the
page. There is no business rule to track ever page access so if an
exception occurs while logging page access I do not want to prevent
the user from viewing the page.
Thanks