[Swift-commit] r6018 - trunk/src/org/griphyn/vdl/karajan/lib

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Nov 9 23:27:58 CST 2012


Author: hategan
Date: 2012-11-09 23:27:57 -0600 (Fri, 09 Nov 2012)
New Revision: 6018

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/VDLFunction.java
Log:
set stack for exceptions if not already there and replace strangely worded dependent exception

Modified: trunk/src/org/griphyn/vdl/karajan/lib/VDLFunction.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/VDLFunction.java	2012-11-10 05:24:17 UTC (rev 6017)
+++ trunk/src/org/griphyn/vdl/karajan/lib/VDLFunction.java	2012-11-10 05:27:57 UTC (rev 6018)
@@ -39,12 +39,14 @@
 import org.globus.cog.karajan.util.TypeUtil;
 import org.globus.cog.karajan.workflow.ExecutionException;
 import org.globus.cog.karajan.workflow.KarajanRuntimeException;
+import org.globus.cog.karajan.workflow.futures.Future;
 import org.globus.cog.karajan.workflow.nodes.SequentialWithArguments;
 import org.globus.cog.karajan.workflow.nodes.restartLog.RestartLog;
 import org.globus.swift.catalog.TCEntry;
 import org.globus.swift.catalog.transformation.File;
 import org.globus.swift.catalog.types.TCType;
 import org.griphyn.vdl.karajan.AssertFailedException;
+import org.griphyn.vdl.karajan.FutureWrapper;
 import org.griphyn.vdl.karajan.Loader;
 import org.griphyn.vdl.karajan.TCCache;
 import org.griphyn.vdl.karajan.functions.ConfigProperty;
@@ -86,10 +88,16 @@
 		    logger.fatal("swift: assert failed: " + e.getMessage());
 		    stack.getExecutionContext().failedQuietly(stack, e);
 		}
+		catch (ExecutionException e) {
+            if (e.getStack() == null) {
+                e.setStack(stack);
+            }
+            throw e;
+        }
 		catch (DependentException e) {
 			// This would not be the primal fault so in non-lazy errors mode it
 			// should not matter
-			throw new ExecutionException("Wrapping a dependent exception in VDLFunction.post() - errors in data dependencies",e);
+			throw new ExecutionException(stack, e);
 		}
 	}
 
@@ -443,6 +451,7 @@
 			return tc;
 		}
 	}
+	
 
 	private static int provenanceIDCount = 451000;
 




More information about the Swift-commit mailing list