You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/02/07 03:07:56 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/transformer TransformerImpl.java
sboag 01/02/06 18:07:56
Modified: java/src/org/apache/xalan/transformer TransformerImpl.java
Log:
Fixes for exceptions being thrown that weren't being passed through
the error listener.
Revision Changes Path
1.83 +5 -5 xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java
Index: TransformerImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- TransformerImpl.java 2001/01/31 20:54:39 1.82
+++ TransformerImpl.java 2001/02/07 02:07:56 1.83
@@ -488,8 +488,8 @@
InputSource xmlSource = SAXSource.sourceToInputSource(source);
if(null == xmlSource)
{
- throw new TransformerException("Can't transform a Source of type "+
- source.getClass().getName()+"!");
+ m_errorHandler.fatalError(new TransformerException("Can't transform a Source of type "+
+ source.getClass().getName()+"!"));
}
if (null != xmlSource.getSystemId())
@@ -626,8 +626,8 @@
}
else if (e instanceof org.apache.xml.utils.WrappedRuntimeException)
{
- throw new javax.xml.transform.TransformerException(
- ((org.apache.xml.utils.WrappedRuntimeException) e).getException());
+ m_errorHandler.fatalError( new javax.xml.transform.TransformerException(
+ ((org.apache.xml.utils.WrappedRuntimeException) e).getException()) );
}
else
{
@@ -649,7 +649,7 @@
((org.apache.xml.utils.WrappedRuntimeException) throwable).getException();
}
- throw new TransformerException(wre.getException());
+ m_errorHandler.fatalError( new TransformerException(wre.getException()) );
}
// Patch attributed to David Eisenberg <da...@catcode.com>
catch (org.xml.sax.SAXParseException spe)