cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r293191 - in /cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation: ValidatorException.java jaxp/JaxpResolver.java
Date Mon, 03 Oct 2005 00:47:29 GMT
Author: antonio
Date: Sun Oct  2 17:47:26 2005
New Revision: 293191

URL: http://svn.apache.org/viewcvs?rev=293191&view=rev
Log:
Make the validation block compatible with java 1.3.

Modified:
    cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation/ValidatorException.java
    cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation/jaxp/JaxpResolver.java

Modified: cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation/ValidatorException.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation/ValidatorException.java?rev=293191&r1=293190&r2=293191&view=diff
==============================================================================
--- cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation/ValidatorException.java
(original)
+++ cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation/ValidatorException.java
Sun Oct  2 17:47:26 2005
@@ -37,7 +37,6 @@
      */
     public ValidatorException(String message, Exception exception) {
         super(message, exception);
-        this.initCause(exception);
     }
 
 }

Modified: cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation/jaxp/JaxpResolver.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation/jaxp/JaxpResolver.java?rev=293191&r1=293190&r2=293191&view=diff
==============================================================================
--- cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation/jaxp/JaxpResolver.java
(original)
+++ cocoon/blocks/validation/trunk/java/org/apache/cocoon/components/validation/jaxp/JaxpResolver.java
Sun Oct  2 17:47:26 2005
@@ -16,6 +16,7 @@
 package org.apache.cocoon.components.validation.jaxp;
 
 import org.apache.cocoon.components.validation.impl.ValidationResolver;
+import org.apache.commons.lang.exception.NestableRuntimeException;
 import org.apache.excalibur.source.SourceResolver;
 import org.w3c.dom.DOMError;
 import org.w3c.dom.ls.LSException;
@@ -66,7 +67,7 @@
         } catch (Exception exception) {
             String message = "Exception resolving resource " + systemId;
             Throwable err = new LSException(DOMError.SEVERITY_FATAL_ERROR, message);
-            throw (LSException) err.initCause(exception);
+            throw new NestableRuntimeException(message, err);
         }
     }
 }



Mime
View raw message