avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/xslt XSLTProcessorImpl.java
Date Tue, 24 Feb 2004 11:17:12 GMT
cziegeler    2004/02/24 03:17:12

  Modified:    xmlutil/src/java/org/apache/excalibur/xml/xslt
                        XSLTProcessorImpl.java
  Log:
  Unwrapping the exception will "remove" the real cause with
  never Xalan versions and makes the exception message unusable
  
  Revision  Changes    Path
  1.3       +12 -2     avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/xslt/XSLTProcessorImpl.java
  
  Index: XSLTProcessorImpl.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/xslt/XSLTProcessorImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XSLTProcessorImpl.java	19 Feb 2004 08:28:33 -0000	1.2
  +++ XSLTProcessorImpl.java	24 Feb 2004 11:17:12 -0000	1.3
  @@ -332,6 +332,10 @@
           }
           catch( SAXException e )
           {
  +            // Unwrapping the exception will "remove" the real cause with
  +            // never Xalan versions and makes the exception message unusable
  +            throw new XSLTProcessorException( "Exception in creating Transform Handler",
e );
  +            /*
               if( e.getException() == null )
               {
                   throw new XSLTProcessorException( "Exception in creating Transform Handler",
e );
  @@ -340,7 +344,7 @@
               {
                   getLogger().debug( "Got SAXException. Rethrowing cause exception.", e );
                   throw new XSLTProcessorException( "Exception in creating Transform Handler",
e.getException() );
  -            }
  +            }*/
           }
           catch( Exception e )
           {
  @@ -400,6 +404,11 @@
           }
           catch( SAXException e )
           {
  +            // Unwrapping the exception will "remove" the real cause with
  +            // never Xalan versions and makes the exception message unusable
  +            final String message = "Error in running Transformation";
  +            throw new XSLTProcessorException( message, e );
  +            /*
               if( e.getException() == null )
               {
                   final String message = "Error in running Transformation";
  @@ -411,6 +420,7 @@
                   getLogger().debug( message, e );
                   throw new XSLTProcessorException( "Error in running Transformation", e.getException()
);
               }
  +            */
           }
           catch( Exception e )
           {
  
  
  

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


Mime
View raw message