You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2004/11/16 21:21:34 UTC
[jira] Updated: (XALANJ-1992) Using .WrappedRuntimeException instead of RuntimeException improves consistency.
[ http://nagoya.apache.org/jira/browse/XALANJ-1992?page=history ]
Brian Minchau updated XALANJ-1992:
----------------------------------
Component: Diagnostic-messages-resources
> Using .WrappedRuntimeException instead of RuntimeException improves consistency.
> ---------------------------------------------------------------------------------
>
> Key: XALANJ-1992
> URL: http://nagoya.apache.org/jira/browse/XALANJ-1992
> Project: XalanJ2
> Type: Improvement
> Components: Diagnostic-messages-resources
> Reporter: Carlo Marchiori
> Priority: Minor
>
> In org.apache.xalan.transformer.TransformerImpl throw a org.apache.xml.utils.WrappedRuntimeException instead of RuntimeException. This permits the nested exception to be carried correctly to the upper layers of Xalan, and
> eventually to the application using Xalan as a library (such as Cocoon does), so that the application can recover the actual exception which happened.
> So in a couple of place apply the following patch:
> // throw new RuntimeException(e.getMessage());
> throw new WrappedRuntimeException(e.getMessage(), e);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org