Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
  Ted Leung on the air: Open Source, Java, Python, and ...
   Tue, 11 Mar 2003   
  
  
  
    More on checked vs. unchecked exceptions
    
   
    
     Alan Griffiths has a good
article on exception handling that mirrors much of my thinking.  Checked exceptions have been overused in Java and that has given them a  bad name.  Griffiths' guidelines suggest that a class in a particular package  can only throw exception types from the same package.  This is the same as saying that exception handling should preserve the layering of the system.  The guidelines call for translation of exceptions to preserve this layering, including the conversion of checked exceptions to unchecked exceptions for those cases where checked exceptions have been overused (such as SQLException).  He references Bruce Eckels' Does Java need Checked Exceptions?, which contains a nice checked exception to unchecked exception adapter, and some interesting observations inspired by his adventures in Python.
    
    [14:11] |
    [computers/programming/java] |
    # | 
    TB |
    F |
    G |
    0 Comments |
    
   
You can subscribe to an RSS feed of the comments for this blog: 
  Add a comment here:
 You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk
   
   
   
   
  Add a comment here:
 You can use some HTML tags in the comment text:To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
 <a href>, <em>, <i>, <b>, <blockquote>, <br/>, <p>, <code>, <pre>, <cite>, <sub> and <sup>.You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk
  




