incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r1447797 - in /incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids: exception/TaskExceptionHandler.java taskmaster/SequentialTaskMaster.java
Date Tue, 19 Feb 2013 16:27:53 GMT
Author: thorsten
Date: Tue Feb 19 16:27:53 2013
New Revision: 1447797

URL: http://svn.apache.org/r1447797
Log:
Passing the task to the exception handler, so additional informatation can be handled

Modified:
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/exception/TaskExceptionHandler.java
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/taskmaster/SequentialTaskMaster.java

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/exception/TaskExceptionHandler.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/exception/TaskExceptionHandler.java?rev=1447797&r1=1447796&r2=1447797&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/exception/TaskExceptionHandler.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/exception/TaskExceptionHandler.java
Tue Feb 19 16:27:53 2013
@@ -16,6 +16,8 @@
  */
 package org.apache.droids.exception;
 
+import org.apache.droids.core.Task;
+
 /**
  * Handler for task exceptions.
  */
@@ -27,6 +29,6 @@ public interface TaskExceptionHandler {
      * @param ex
      * @return the kind of exception
      */
-    TaskExceptionResult handleException(Exception ex);
+    TaskExceptionResult handleException(Exception ex, Task task);
 
 }

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/taskmaster/SequentialTaskMaster.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/taskmaster/SequentialTaskMaster.java?rev=1447797&r1=1447796&r2=1447797&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/taskmaster/SequentialTaskMaster.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/taskmaster/SequentialTaskMaster.java
Tue Feb 19 16:27:53 2013
@@ -84,7 +84,7 @@ public class SequentialTaskMaster<T exte
             } catch (Exception ex) {
                 TaskExceptionResult result = TaskExceptionResult.WARN;
                 if (exHandler != null) {
-                    result = exHandler.handleException(ex);
+                    result = exHandler.handleException(ex, task);
                 }
                 switch (result) {
                     case WARN:



Mime
View raw message