Using .WrappedRuntimeException instead  of RuntimeException improves 
consistency.
---------------------------------------------------------------------------------

         Key: XALANJ-1992
         URL: http://nagoya.apache.org/jira/browse/XALANJ-1992
     Project: XalanJ2
        Type: Improvement
    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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to