<?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"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Better error handling</title> <atom:link href="http://www.heavyworks.net/blog/posts/better-error-handling/feed" rel="self" type="application/rss+xml" /><link>http://www.heavyworks.net/blog/posts/better-error-handling</link> <description>Extreme Software Engineering</description> <lastBuildDate>Thu, 09 Feb 2012 06:29:07 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Kamren</title><link>http://www.heavyworks.net/blog/posts/better-error-handling/comment-page-1#comment-523</link> <dc:creator>Kamren</dc:creator> <pubDate>Mon, 11 Apr 2011 20:20:05 +0000</pubDate> <guid
isPermaLink="false">http://www.heavyworks.net/?p=440#comment-523</guid> <description>Great thinking! That relayl breaks the mold!</description> <content:encoded><![CDATA[<p>Great thinking! That relayl breaks the mold!</p> ]]></content:encoded> </item> <item><title>By: Jan Seidl</title><link>http://www.heavyworks.net/blog/posts/better-error-handling/comment-page-1#comment-384</link> <dc:creator>Jan Seidl</dc:creator> <pubDate>Wed, 21 Apr 2010 13:54:24 +0000</pubDate> <guid
isPermaLink="false">http://www.heavyworks.net/?p=440#comment-384</guid> <description>Thanks Sean, very good clarification. Updated the post!</description> <content:encoded><![CDATA[<p>Thanks Sean, very good clarification. Updated the post!</p> ]]></content:encoded> </item> <item><title>By: Exceptions Are Not For Flow Control &#183; Squirrel Hacker</title><link>http://www.heavyworks.net/blog/posts/better-error-handling/comment-page-1#comment-383</link> <dc:creator>Exceptions Are Not For Flow Control &#183; Squirrel Hacker</dc:creator> <pubDate>Wed, 21 Apr 2010 12:01:24 +0000</pubDate> <guid
isPermaLink="false">http://www.heavyworks.net/?p=440#comment-383</guid> <description>[...] I saw this post on Better Error Handling, while there is nothing horribly horribly wrong with it I couldn&#8217;t help thinking that he has [...]</description> <content:encoded><![CDATA[<p>[...] I saw this post on Better Error Handling, while there is nothing horribly horribly wrong with it I couldn&#8217;t help thinking that he has [...]</p> ]]></content:encoded> </item> <item><title>By: SeanJA</title><link>http://www.heavyworks.net/blog/posts/better-error-handling/comment-page-1#comment-382</link> <dc:creator>SeanJA</dc:creator> <pubDate>Wed, 21 Apr 2010 02:54:29 +0000</pubDate> <guid
isPermaLink="false">http://www.heavyworks.net/?p=440#comment-382</guid> <description>The only problem is that you are now wrapping everything you do in try{} catch(SomeExceptionType $e){} so you can catch the errors... You should throw exceptions only in exceptional cases. For example: they gave you &#039;asdf&#039; instead of an integer when they called find_user_by_id(). See: http://stackoverflow.com/questions/77127/when-to-throw-an-exception</description> <content:encoded><![CDATA[<p>The only problem is that you are now wrapping everything you do in try{} catch(SomeExceptionType $e){} so you can catch the errors&#8230; You should throw exceptions only in exceptional cases. For example: they gave you &#8216;asdf&#8217; instead of an integer when they called find_user_by_id(). See: <a
href="http://stackoverflow.com/questions/77127/when-to-throw-an-exception" rel="nofollow">http://stackoverflow.com/questions/77127/when-to-throw-an-exception</a></p> ]]></content:encoded> </item> </channel> </rss>
