<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-15701809.post2780929956983131771..comments</id><updated>2009-03-01T19:20:24.497+05:30</updated><title type='text'>Comments on Thought Net: Exceptions Revisited</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.uchithar.net/feeds/2780929956983131771/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15701809/2780929956983131771/comments/default'/><link rel='alternate' type='text/html' href='http://www.uchithar.net/2009/01/exceptions.html'/><author><name>creed - Uchitha</name><uri>http://www.blogger.com/profile/10323105270454228259</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-15701809.post-7233568951361994424</id><published>2009-03-01T03:30:00.000+05:30</published><updated>2009-03-01T03:30:00.000+05:30</updated><title type='text'>Hello Uchitha, It is a nightmare to develop a nice...</title><content type='html'>Hello Uchitha, &lt;BR/&gt;It is a nightmare to develop a nicely structured(less coupling) component without having "checked" exceptions. According to my experience, Java is more flexible than .net by having both types of exceptions. There are "must" handle exceptions within the block of code and if you throw them unchecked, there is no guarantee that you will handle them in proper way. Doesn't it destroy the whole idea of cohesion in OOP? The solution for the problems you pointed out (scalability and versioning) is to have user defined exceptions. That is the way to go! Define your own exception to handle most common, trivial exceptions and throw them up to the call stack, but handle/throw the "must handle" exceptions inside the same class/component.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15701809/2780929956983131771/comments/default/7233568951361994424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15701809/2780929956983131771/comments/default/7233568951361994424'/><link rel='alternate' type='text/html' href='http://www.uchithar.net/2009/01/exceptions.html?showComment=1235858400000#c7233568951361994424' title=''/><author><name>SMP(SiMPle) Shehan</name><uri>http://www.blogger.com/profile/06910985113761748664</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.uchithar.net/2009/01/exceptions.html' ref='tag:blogger.com,1999:blog-15701809.post-2780929956983131771' source='http://www.blogger.com/feeds/15701809/posts/default/2780929956983131771' type='text/html'/></entry></feed>