You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2008/06/25 17:39:06 UTC

svn commit: r671582 - /ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath10/runtime/WrappedFaultException.java

Author: mriou
Date: Wed Jun 25 08:39:06 2008
New Revision: 671582

URL: http://svn.apache.org/viewvc?rev=671582&view=rev
Log:
Can't reinitialize cause, have to use getFaultException() instead.

Modified:
    ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath10/runtime/WrappedFaultException.java

Modified: ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath10/runtime/WrappedFaultException.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath10/runtime/WrappedFaultException.java?rev=671582&r1=671581&r2=671582&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath10/runtime/WrappedFaultException.java (original)
+++ ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath10/runtime/WrappedFaultException.java Wed Jun 25 08:39:06 2008
@@ -27,45 +27,43 @@
  *  Wrap a fault in a jaxen exception
  */
 public interface WrappedFaultException {
-	public FaultException getFaultException();
-	
-	/**
-	 * Jaxenized  {@link FaultException}; Jaxen requires us to throw only exceptions
-	 * extending its {@link UnresolvableVariableException} so we comply.
-	 */
-	static class JaxenUnresolvableException extends UnresolvableException implements WrappedFaultException{
-    private static final long serialVersionUID = 6266231885976155458L;
-    
-    FaultException _cause;
-	  public JaxenUnresolvableException(FaultException e) {
-	  	super("var");
-	    assert e != null;
-	    initCause(e);
-	    _cause = e;
-	  }
-
-	  public FaultException getFaultException() {
-	    return _cause;
-	  }
-	}
-	
-	/**
-	 * Jaxenized  {@link FaultException}; Jaxen requires us to throw only exceptions
-	 * extending its {@link FunctionCallException} so we comply.
-	 */
-	static class JaxenFunctionException extends FunctionCallException implements WrappedFaultException{
-    private static final long serialVersionUID = -1915683768194623625L;
-    FaultException _cause;
-    
-	  public JaxenFunctionException(FaultException e) {
-	    super(e);
-	    assert e != null;
-	    initCause(e);
-	    _cause = e;
-	  }
-
-	  public FaultException getFaultException() {
-	    return _cause;
-	  }
-	}
+    public FaultException getFaultException();
+
+    /**
+     * Jaxenized  {@link FaultException}; Jaxen requires us to throw only exceptions
+     * extending its {@link UnresolvableVariableException} so we comply.
+     */
+    static class JaxenUnresolvableException extends UnresolvableException implements WrappedFaultException{
+        private static final long serialVersionUID = 6266231885976155458L;
+
+        FaultException _cause;
+        public JaxenUnresolvableException(FaultException e) {
+            super("var");
+            assert e != null;
+            _cause = e;
+        }
+
+        public FaultException getFaultException() {
+            return _cause;
+        }
+    }
+
+    /**
+     * Jaxenized  {@link FaultException}; Jaxen requires us to throw only exceptions
+     * extending its {@link FunctionCallException} so we comply.
+     */
+    static class JaxenFunctionException extends FunctionCallException implements WrappedFaultException{
+        private static final long serialVersionUID = -1915683768194623625L;
+        FaultException _cause;
+
+        public JaxenFunctionException(FaultException e) {
+            super(e);
+            assert e != null;
+            _cause = e;
+        }
+
+        public FaultException getFaultException() {
+            return _cause;
+        }
+    }
 }