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

submitted by leedumondleedumond(2139) 2 years, 8 months 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: 1395

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(341) 2 years, 8 months ago 0

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

Reply

posted by codegurucodeguru(80) 2 years, 8 months ago 0

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

Reply

posted by fquednaufquednau(404) 2 years, 8 months ago 0

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

Reply

posted by leedumondleedumond(2139) 2 years, 8 months ago 0

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

Reply

information Login or create an account to comment on this story