You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by ar...@apache.org on 2003/09/24 18:00:40 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/utils DefaultErrorHandler.java
aruny 2003/09/24 09:00:40
Modified: java/src/org/apache/xml/utils Tag: jaxp-1_3_0-branch
DefaultErrorHandler.java
Log:
Description: As per JAXP1.3 spec, if an application does not register an ErrorListener, errors are reported to System.err.
Errors and warnings should be reported to System.err except the fatal errors while tranformation.
Revision Changes Path
No revision
No revision
1.13.4.1 +3 -4 xml-xalan/java/src/org/apache/xml/utils/DefaultErrorHandler.java
Index: DefaultErrorHandler.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/DefaultErrorHandler.java,v
retrieving revision 1.13
retrieving revision 1.13.4.1
diff -u -r1.13 -r1.13.4.1
--- DefaultErrorHandler.java 30 Jan 2003 18:46:19 -0000 1.13
+++ DefaultErrorHandler.java 24 Sep 2003 16:00:40 -0000 1.13.4.1
@@ -232,8 +232,8 @@
{
// printLocation(exception);
// ensureLocationSet(exception);
-
- throw exception;
+ printLocation(m_pw, exception);
+ m_pw.println(exception.getMessage());
}
/**
@@ -260,8 +260,7 @@
{
// printLocation(exception);
// ensureLocationSet(exception);
-
- throw exception;
+ throw exception;
}
public static void ensureLocationSet(TransformerException exception)
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org