@Josh - A somewhat trite response that indicates you probably don’t know what you’re talking about (or at least how these things work) for web applications. I guess you’re missing the point that static error pages happen /after/ everything else.
- you’ve already checked input
- you’ve already accounted for /known/ issues (DB concurrency exceptions, no connection to DB, web services down, data parsed appropriately, checking references in methods, etc).
- you write good error handling code that only catches specific exceptions
But the unimaginable happens. Timeouts, db connections that die, drives that crash, overloaded web servers, no memory, full disk space, file permissions don’t work, etc.
But you’ve got a global error handler. It’s already intercepted the message and done it’s best to notify someone in operations. SNMP traps, emails, log files, etc. Yay. Mr 24x7 in operations is on the job and degaussing servers like crazy. Job well done. Have a kit-kat man!
So what exactly do you want the error page to say? Some technical jargon? A stack trace? That node SN14 decided it’s no longer in sync with cluster NN233? That it’s been fed some bad data? That drive C is full?
Lordy, I guess I can sleep better now. I never did like NN233 (always smelled bad in school).
Tell us, and please be honest, did your mother appreciate the arcane message?
Does she feel better?
Does it help her?
Hmm, that begs the question: How do you customise an error page when you don’t expect an error to happen? I guess you really need a time machine to do that properly. Then you can make a fancy error page that really knows how to display just the right message when, on Jan 14 2020 at 4:45pm PST node SN14 desyncs with cluster NN233. Feel better? I do.
You know what’s too bad? We ran out of time with all this gee whiz time travel and fancy error page stuff and never did fix the code in node SN14 that stops the error from happening in the first place.
Then again, us mere mortals just chuck up a static page that says ‘Sorry’ because we’re busy fixing bugs. Some of us are a bit more graphically inclined (or have some senses of humor) and like to put up cute pages so the customer experience isn’t diminished too much.