forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scher...@wyona.com>
Subject Re: [jira] Commented: (FOR-914) [Java Coding] Do not raise exception when you can prevent them
Date Fri, 04 Aug 2006 12:28:33 GMT
El vie, 04-08-2006 a las 05:07 -0700, Tim Williams (JIRA) escribió:
>     [ http://issues.apache.org/jira/browse/FOR-914?page=comments#action_12425730 ] 
>             
> Tim Williams commented on FOR-914:
> ----------------------------------
> 
> +1, though I'm probably as guilty as the next person;(
> Some reference material:
> http://www.javaworld.com/jw-08-2000/jw-0818-exceptions.html

Thanks for this nice link.

"So, following the general philosophy behind exceptions, should you
dismiss the possibility that searches will return nothing? When a search
comes up empty, is it not more a case of normal processing? Therefore,
in order to use exceptions judiciously, choose the approach in Case 2
over Case 1."

Hit the nail on the head.

salu2
-- 
Thorsten Scherler
COO Spain
Wyona Inc.  -  Open Source Content Management  -  Apache Lenya
http://www.wyona.com                   http://lenya.apache.org
thorsten.scherler@wyona.com                thorsten@apache.org


Mime
View raw message