If one is not going to attempt to recover from the exception, the 
exception's information should be dumped to the logs at the very least 
so an administrator/programmer can take actions to rectify the situation.

Flávio Botelho (JIRA) wrote:
> Ban empty catches from the code
> -------------------------------
>
>                  Key: DS-351
>                  URL: http://jira.dspace.org/jira/browse/DS-351
>              Project: DSpace 1.x
>           Issue Type: Bug
>           Components: DSpace API
>             Reporter: Flávio Botelho
>
>
> Just an example, DatabaseManager, lines 1369-1371
>
>                 catch (SQLException sqle)
>                 {
>                 }
>
>
> Only in very rare cases empty catches are acceptable, and of course with 
> accompanying commentaries.
> It's possible to change this to an Error in Eclipse to easy the spotting of 
> them.
>
>   


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to