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/01/24 19:13:52 UTC

cvs commit: xml-xalan/java/src/org/apache/xml/utils DefaultErrorHandler.java

sboag       01/01/24 10:13:52

  Modified:    java/src/org/apache/xml/utils DefaultErrorHandler.java
  Log:
  The error method now throws an exception, instead of just printing
  a message and trying to continue.  The continue behavior proved
  to be too confusing, and the lack of stack dumps a significant problem.
  
  Revision  Changes    Path
  1.3       +3 -2      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultErrorHandler.java	2001/01/02 03:42:50	1.2
  +++ DefaultErrorHandler.java	2001/01/24 18:13:50	1.3
  @@ -121,7 +121,8 @@
     public void error(SAXParseException exception) throws SAXException
     {
       printLocation(exception);
  -    System.out.println("Parser error: " + exception.getMessage());
  +
  +    throw exception;
     }
   
     /**
  @@ -200,7 +201,7 @@
     {
       printLocation(exception);
   
  -    System.out.println("Parser error: " + exception.getMessage());
  +    throw exception;
     }
   
     /**