<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Exception handling revisited</title>
	<atom:link href="http://www.magpiebrain.com/blog/2005/04/05/exception-handling-revisited/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.magpiebrain.com/blog/2005/04/05/exception-handling-revisited/</link>
	<description>Sam Newman's blog</description>
	<pubDate>Fri, 21 Nov 2008 20:12:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: sam newman</title>
		<link>http://www.magpiebrain.com/blog/2005/04/05/exception-handling-revisited/#comment-658</link>
		<dc:creator>sam newman</dc:creator>
		<pubDate>Sun, 10 Apr 2005 21:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2005/04/05/exception-handling-revisited/#comment-658</guid>
		<description>Yes, you are maing that assumption - and that is one of the problems I had with this approach, especially if you aren't the person whose going to be doing the calling.

The way I think of it, is that I use checked exceptions within an application statck, but never throw a checked exception out of the boundry of the application. I have complete control over the stack, therefore know what error conditions can be handled. It's not a one-size fits all approach however - for example what happens if you call the same class in two different contexts? In one you can handle the error, in the other you can't. That said for 99% of code, exception handling has become a no-brainer, and has resulted in simpler, cleaner error handling.
</description>
		<content:encoded><![CDATA[<p>Yes, you are maing that assumption - and that is one of the problems I had with this approach, especially if you aren&#8217;t the person whose going to be doing the calling.</p>
<p>The way I think of it, is that I use checked exceptions within an application statck, but never throw a checked exception out of the boundry of the application. I have complete control over the stack, therefore know what error conditions can be handled. It&#8217;s not a one-size fits all approach however - for example what happens if you call the same class in two different contexts? In one you can handle the error, in the other you can&#8217;t. That said for 99% of code, exception handling has become a no-brainer, and has resulted in simpler, cleaner error handling.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.magpiebrain.com/blog/2005/04/05/exception-handling-revisited/#comment-657</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sun, 10 Apr 2005 21:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2005/04/05/exception-handling-revisited/#comment-657</guid>
		<description>Hey Sam, aren't you making assumptions about what the caller can and cannot handle within the throwing class?  I mean, why does the pitcher care what the catcher can handle?  What if you get a new catcher that can't handle your checked exceptions or someone who can handle your runtime exceptions?

Is there a good rule of thumb for knowing when your caller should be able to handle an exception and when to throw an unchecked exception?</description>
		<content:encoded><![CDATA[<p>Hey Sam, aren&#8217;t you making assumptions about what the caller can and cannot handle within the throwing class?  I mean, why does the pitcher care what the catcher can handle?  What if you get a new catcher that can&#8217;t handle your checked exceptions or someone who can handle your runtime exceptions?</p>
<p>Is there a good rule of thumb for knowing when your caller should be able to handle an exception and when to throw an unchecked exception?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
