My blog has moved!

You should be automatically redirected in 6 seconds. If not, visit
http://kavachai.com
and update your bookmarks.

Monday, June 1, 2009

Funny and scaring usage of exceptions

I've just read post The Greatest Exception Handling WTF?!? of All Time.
It's about missusing exceptions in application code. Guy uses exception to return value from method, but usage of this method is even funnier:

the page code that uses the method actually requires the the returned exception to be thrown in order to fulfill its normal function.

No comments:

Post a Comment