You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/09/19 13:39:41 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc TransletException.java

morten      01/09/19 04:39:41

  Modified:    java/src/org/apache/xalan/xsltc TransletException.java
  Log:
  Changed the TransletException class so that it inherits from SAXException
  and not from Exception. This should make it possible for us to avoid
  testing for both SAXExceptions and TransletExceptions. Exception handling
  is one of the things that JVM takes its time with, and we should try to
  avoid using them when we can, and use as few of them as possible otherwise.
  PR:		n/a
  Obtained from:	n/a
  Submitted by:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.2       +7 -3      xml-xalan/java/src/org/apache/xalan/xsltc/TransletException.java
  
  Index: TransletException.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/TransletException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransletException.java	2001/04/17 18:51:14	1.1
  +++ TransletException.java	2001/09/19 11:39:41	1.2
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: TransletException.java,v 1.1 2001/04/17 18:51:14 sboag Exp $
  + * @(#)$Id: TransletException.java,v 1.2 2001/09/19 11:39:41 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -58,14 +58,18 @@
    *
    * @author Jacek Ambroziak
    * @author Santiago Pericas-Geertsen
  + * @author Morten Jorgensen
    *
    */
   
   package org.apache.xalan.xsltc;
   
  -public final class TransletException extends Exception {
  +import org.xml.sax.SAXException;
  +
  +public final class TransletException extends SAXException {
  +
       public TransletException() {
  -	super();
  +	super("Translet error");
       }
       
       public TransletException(Exception e) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org