Revision: 1764
http://cogkit.svn.sourceforge.net/cogkit/?rev=1764&view=rev
Author: hategan
Date: 2007-10-01 12:11:34 -0700 (Mon, 01 Oct 2007)
Log Message:
-----------
don't set status if exception is thrown
Modified Paths:
--------------
trunk/current/src/cog/modules/abstraction-common/src/org/globus/cog/abstraction/impl/file/CachingDelegatedFileOperationHandler.java
Modified: trunk/current/src/cog/modules/abstraction-common/src/org/globus/cog/abstraction/impl/file/CachingDelegatedFileOperationHandler.java
===================================================================
--- trunk/current/src/cog/modules/abstraction-common/src/org/globus/cog/abstraction/impl/file/CachingDelegatedFileOperationHandler.java 2007-10-01 19:10:51 UTC (rev 1763)
+++ trunk/current/src/cog/modules/abstraction-common/src/org/globus/cog/abstraction/impl/file/CachingDelegatedFileOperationHandler.java 2007-10-01 19:11:34 UTC (rev 1764)
@@ -32,7 +32,6 @@
TaskSubmissionException {
Service service = task.getService(0);
if (service == null) {
- setTaskStatus(task, Status.FAILED, null, "Service is not set");
throw new IllegalSpecException("Service is not set");
}
FileResource fr = null;
@@ -42,20 +41,17 @@
setTaskStatus(task, Status.COMPLETED, null, null);
}
catch (TaskSubmissionException e) {
- setTaskStatus(task, Status.FAILED, e, e.getMessage());
throw e;
}
catch (IllegalSpecException e) {
- setTaskStatus(task, Status.FAILED, e, e.getMessage());
throw e;
}
catch (IrrecoverableResourceException e) {
FileResourceCache.getDefault().invalidateResource(resource);
- setTaskStatus(task, Status.FAILED, e, e.getMessage());
+ throw new TaskSubmissionException(e);
}
catch (Exception e) {
- setTaskStatus(task, Status.FAILED, e, e.getMessage());
- throw new TaskSubmissionException(e.getMessage(), e);
+ throw new TaskSubmissionException(e);
}
finally {
stopResources();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|