incubator-droids-commits mailing list archives

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

URL: http://svn.apache.org/r1447800
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/DefaultTaskExceptionHandler.java
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/taskmaster/MultiThreadedTaskMaster.java

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/exception/DefaultTaskExceptionHandler.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/exception/DefaultTaskExceptionHandler.java?rev=1447800&r1=1447799&r2=1447800&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/exception/DefaultTaskExceptionHandler.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/exception/DefaultTaskExceptionHandler.java
Tue Feb 19 16:30:26 2013
@@ -19,12 +19,13 @@ package org.apache.droids.exception;
 import java.io.IOException;
 
 import org.apache.droids.core.DroidsException;
+import org.apache.droids.core.Task;
 
 
 public class DefaultTaskExceptionHandler implements TaskExceptionHandler {
 
     @Override
-    public TaskExceptionResult handleException(Exception ex) {
+    public TaskExceptionResult handleException(Exception ex, Task task) {
         if (ex instanceof IOException) {
             return TaskExceptionResult.WARN;
         } else if (ex instanceof DroidsException) {

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/taskmaster/MultiThreadedTaskMaster.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/taskmaster/MultiThreadedTaskMaster.java?rev=1447800&r1=1447799&r2=1447800&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/taskmaster/MultiThreadedTaskMaster.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/taskmaster/MultiThreadedTaskMaster.java
Tue Feb 19 16:30:26 2013
@@ -371,7 +371,7 @@ public class MultiThreadedTaskMaster<T e
 
                     // handler the exception
                     if (ex != null) {
-                        TaskExceptionResult result = exceptionHandler.handleException(ex);
+                        TaskExceptionResult result = exceptionHandler.handleException(ex,
task);
 
                         // stop the execution in case of a fatal exception
                         if (TaskExceptionResult.FATAL.equals(result)) {



Mime
View raw message