I've got some code in my web app to deal with unhandled exceptions - it hands off to a fancy custom error page which logs the details. But what if there's an unhandled exception within the custom error page?
I can detect this condition in my general exception handler by checking to see if Request.CurrentExecutionFilePath
equals my custom error page, and thus take steps to avoid the loop. But any ideas what these steps should be - fall back to the yellow screen of death, hand off to a static custom error page?
Or should I just wrap my custom error page code in a try {...} catch {}
and stop worrying about it?