[jbpm-commits] JBoss JBPM SVN: r2590 - jbpm3/trunk/modules/core/src/main/java/org/jbpm/graph/def.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Oct 22 20:33:38 EDT 2008


Author: alex.guizar at jboss.com
Date: 2008-10-22 20:33:38 -0400 (Wed, 22 Oct 2008)
New Revision: 2590

Modified:
   jbpm3/trunk/modules/core/src/main/java/org/jbpm/graph/def/DelegationException.java
Log:
removed cause field from DelegationException - no reason to expose a mutable cause

Modified: jbpm3/trunk/modules/core/src/main/java/org/jbpm/graph/def/DelegationException.java
===================================================================
--- jbpm3/trunk/modules/core/src/main/java/org/jbpm/graph/def/DelegationException.java	2008-10-23 00:31:05 UTC (rev 2589)
+++ jbpm3/trunk/modules/core/src/main/java/org/jbpm/graph/def/DelegationException.java	2008-10-23 00:33:38 UTC (rev 2590)
@@ -25,28 +25,21 @@
 import org.jbpm.graph.exe.*;
 
 public class DelegationException extends JbpmException {
-  
+
   private static final long serialVersionUID = 1L;
 
-  protected Throwable cause = null;
   protected transient ExecutionContext executionContext = null;
 
   public DelegationException(Throwable cause, ExecutionContext executionContext) {
-    super(cause.getMessage());
-    this.cause = cause;
+    super(cause.getMessage(), cause);
     this.executionContext = executionContext;
   }
-  
+
   public DelegationException(String message, Throwable cause) {
     super(message, cause);
-    this.cause = cause;
   }
 
   public ExecutionContext getExecutionContext() {
     return executionContext;
   }
-
-  public Throwable getCause() {
-    return cause;
-  }
 }




More information about the jbpm-commits mailing list