cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject svn commit: r226970 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/TraxTransformer.java
Date Tue, 02 Aug 2005 08:42:45 GMT
Author: sylvain
Date: Tue Aug  2 01:42:42 2005
New Revision: 226970

URL: http://svn.apache.org/viewcvs?rev=226970&view=rev
Log:
Do not report stylesheet location. That will be part of a more general pipeline stacktrace

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/TraxTransformer.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/TraxTransformer.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/TraxTransformer.java?rev=226970&r1=226969&r2=226970&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/TraxTransformer.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/TraxTransformer.java
Tue Aug  2 01:42:42 2005
@@ -620,8 +620,13 @@
                     Throwable realEx = transformerException.getCause();
                     if (realEx == null) realEx = transformerException;
                     
-                    // Now throw an exception locating the current stylesheet
-                    throw new LocatedRuntimeException("Error during transformation", realEx,
new Location(this.inputSource.getURI()));
+                    if (realEx instanceof SAXException) {
+                        // Rethrow
+                        throw (SAXException)realEx;
+                    } else {
+                        // Wrap in a SAXException
+                        throw new SAXException(transformerException);
+                    }
                 } else {
                     throw new SAXException(transformerException);
                 }



Mime
View raw message