You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ted Husted <hu...@apache.org> on 2002/11/18 02:47:28 UTC
[Struts Tip] #15 Use chained exceptions
Many Java mavens recommend that business objects throw their own
exceptions. Internally, a component may catching a SQL or IO
exception, but what we really need to tell the user is that a data
access error occurred. Of course, at the same time, you do not
want to sacrifice any detail from the original exception.
Retaining detail from the exception can especially important in a
layered, multi-tiered, or multi-platform application.. The
business component may not have direct access to the log, and the
exception is its only way of telling us what went wrong.
[more ... <http://husted.com/struts/tips/015.html>]
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>