The Greatest Exception Handling WTF?!? of All Time (leedumond.com)

published 8 months, 12 days ago, submitted by leedumondleedumond(2009) 8 months, 13 days ago

The Exception object has ONE purpose and ONE purpose only – to represent a runtime error, nothing more. Exceptions should never be used for purposes for which they were not intended -- or you could end up with this monstrosity...

4 comments | category: | Views: 1373

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:

posted by jcincottajcincotta(340) 8 months, 13 days ago

I've seen some tortured uses of exceptions, but this one takes the cake! :D

posted by codegurucodeguru(75) 8 months, 12 days ago

this is a real WTF, if the developers works for me I'd shot him dead on site. :D

posted by fquednaufquednau(395) 8 months, 12 days ago

I almost can't believe it. Have you posted it to the dailywtf?

posted by leedumondleedumond(2009) 8 months, 12 days ago

@fquendnau -- hadn't thought of that, but that's not a bad idea :)

information Login or create an account to comment on this story