<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Andy Palmer - Latest Comments in Checked Exceptions are Waste</title><link>http://andypalmer.disqus.com/</link><description></description><atom:link href="https://andypalmer.disqus.com/checked_exceptions_are_waste/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 21 Sep 2009 06:23:13 -0000</lastBuildDate><item><title>Re: Checked Exceptions are Waste</title><link>http://andypalmer.com/2008/09/checked-exceptions/#comment-6415940375</link><description>&lt;p&gt;I always change my Eclipse default catch clause to:&lt;br&gt;    throw new RuntimeException(e);&lt;br&gt;&lt;br&gt;Don&amp;amp;#39t add and exception to the throws clause unless it will make sense to the caller.  If it&amp;amp;#39s a case that should never happen, or cannot be handled, wrap it in a RuntimeException, which effectively converts the checked exception to an unchecked one.&lt;br&gt;&lt;br&gt;I don&amp;amp;#39t see why an "ignores" clause couldn&amp;amp;#39t be added to Java methods to do this wrapping automatically.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Wong</dc:creator><pubDate>Mon, 21 Sep 2009 06:23:13 -0000</pubDate></item><item><title>Re: Checked Exceptions are Waste</title><link>http://andypalmer.com/2008/09/checked-exceptions/#comment-17025831</link><description>&lt;p&gt;I always change my Eclipse default catch clause to:&lt;br&gt;    throw new RuntimeException(e);&lt;/p&gt;&lt;p&gt;Don't add and exception to the throws clause unless it will make sense to the caller.  If it's a case that should never happen, or cannot be handled, wrap it in a RuntimeException, which effectively converts the checked exception to an unchecked one.&lt;/p&gt;&lt;p&gt;I don't see why an "ignores" clause couldn't be added to Java methods to do this wrapping automatically.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Wong</dc:creator><pubDate>Mon, 21 Sep 2009 01:23:13 -0000</pubDate></item><item><title>Re: Checked Exceptions are Waste</title><link>http://andypalmer.com/2008/09/checked-exceptions/#comment-9117769</link><description>&lt;p&gt;The reason Java checked exceptions are a pain is because, like everything in Java, they didn't quite finish when they adopted the idea. In Modula-3, there is a FATAL pragma which meant that you can declare that you don't know how to handle a checked exception within a given scope. If such an exception occurs then the program fails. It's so simple  but it makes all the difference to the usability of checked exceptions.&lt;/p&gt;&lt;p&gt;The point of checked exceptions is that it allows me to know all the paths out of a chunk of code, otherwise I have to assume that any method call can fail and over-protect the logic.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steve Freeman</dc:creator><pubDate>Sun, 09 Nov 2008 13:25:44 -0000</pubDate></item><item><title>Re: Checked Exceptions are Waste</title><link>http://andypalmer.com/2008/09/checked-exceptions/#comment-9117768</link><description>&lt;p&gt;Liking the ExceptionHandler object idea, could prove to be very versatile and flexible...&lt;br&gt;Next workshop?? :D&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rugbyhead</dc:creator><pubDate>Sat, 06 Sep 2008 13:27:00 -0000</pubDate></item></channel></rss>