- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
throw new FristException("WTF?");
Admin
Welcome to the world of software development.
Admin
At this point, it's not even "software development" anymore, it's "WTFware WTFlopment"
Admin
Ref Sauron, it sure looks like nothing but Flopment to me. Pure unadulterated concentrated Flopment.
Admin
The real WTF is string.Empty which is just "" but with more characters.
Admin
I am only testing
Admin
Who are you to judge how Captain Underpants dresses?
Admin
But what if you want to put a setting in the Enterprise-y XML configuration file to define String.EMPTY as "File Not Found"? Whatever would you do?
Admin
What's strange about a generic exception handler (except for this brain-dead example?) If you get a truly unexpected exception which you can't rectify, for gods sake have a generic exception handler in the uppermost layer which logs/presents error to the user. What is really strange is the common Pokemon pattern.
Admin
Feels a bit like somebody wanted to have a way of setting up breakpoints when debugging but just ignore the exceptions in production...?
Admin
Yeah, this one is a fatality handler - so basically log it and tell the user to refresh or something, maybe calling the helpline with an reference code if there's even support available for this application. So in other words, there is no handling of different exceptions required, this should have been done long before an exception ends up there.