vgritsenko 02/04/05 18:37:29
Modified: src/java/org/apache/cocoon/components/xslt
XSLTProcessorImpl.java
Log:
fix error handling
Revision Changes Path
1.18 +7 -3
xml-cocoon2/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java
Index: XSLTProcessorImpl.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- XSLTProcessorImpl.java 20 Mar 2002 05:15:05 -0000 1.17
+++ XSLTProcessorImpl.java 6 Apr 2002 02:37:29 -0000 1.18
@@ -117,7 +117,7 @@
* (<code>TransformerFactory.newInstance()</code>).
*
* @author <a href="mailto:[EMAIL PROTECTED]">Ovidiu Predescu</a>
- * @version CVS $Id: XSLTProcessorImpl.java,v 1.17 2002/03/20 05:15:05 vgritsenko
Exp $
+ * @version CVS $Id: XSLTProcessorImpl.java,v 1.18 2002/04/06 02:37:29 vgritsenko
Exp $
* @version 1.0
* @since July 11, 2001
*/
@@ -267,8 +267,12 @@
} catch (ProcessingException e) {
throw e;
} catch (SAXException e) {
- getLogger().debug("Got SAXException. Rethrowing cause exception.", e);
- throw new ProcessingException("Exception in creating Transform
Handler", e.getException());
+ if (e.getException() == null) {
+ throw new ProcessingException("Exception in creating Transform
Handler", e);
+ } else {
+ getLogger().debug("Got SAXException. Rethrowing cause exception.",
e);
+ throw new ProcessingException("Exception in creating Transform
Handler", e.getException());
+ }
} catch (Exception e) {
throw new ProcessingException("Exception in creating Transform
Handler", e);
}
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]