RE: OSWorkflow: new Exception handling
"Sullivan, Sean C - MWT" <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.devel |
|---|---|
| Message-ID | <[email protected]> |
> From: Hani Suleiman > > Anyway, I disagree somewhat with what you pasted, as does the core JDK. A > SQLException is not recoverable, for example. JDBC is an example of an API that abuses checked exceptions. For example: java.sql.ResultSet.close() throws a checked exception java.sql.Connection.close() throws a checked exception It is interesting to compare Sun's JDBC API versus Sun's new JDO API. The JDO API uses a radically different approach for exception handling. In JDO, all JDO exceptions derive from javax.jdo.JDOException javax.jdo.JDOException is an unchecked exception (it extends java.lang.RuntimeException) I compiled a list of resources that discuss exception handling techniques and strategies: http://jinx.swiki.net/352 -Sean ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01