You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by cb...@apache.org on 2011/07/24 14:55:59 UTC

svn commit: r1150347 - /pivot/trunk/core/src/org/apache/pivot/util/concurrent/Task.java

Author: cbartlett
Date: Sun Jul 24 12:55:59 2011
New Revision: 1150347

URL: http://svn.apache.org/viewvc?rev=1150347&view=rev
Log:
PIVOT-769 Changed the 'fault' field type from Exception to Throwable

Modified:
    pivot/trunk/core/src/org/apache/pivot/util/concurrent/Task.java

Modified: pivot/trunk/core/src/org/apache/pivot/util/concurrent/Task.java
URL: http://svn.apache.org/viewvc/pivot/trunk/core/src/org/apache/pivot/util/concurrent/Task.java?rev=1150347&r1=1150346&r2=1150347&view=diff
==============================================================================
--- pivot/trunk/core/src/org/apache/pivot/util/concurrent/Task.java (original)
+++ pivot/trunk/core/src/org/apache/pivot/util/concurrent/Task.java Sun Jul 24 12:55:59 2011
@@ -36,13 +36,13 @@ public abstract class Task<V> {
         @Override
         public void run() {
             V result = null;
-            Exception fault = null;
+            Throwable fault = null;
 
             try {
                 result = execute();
             }
-            catch(Exception exception) {
-                fault = exception;
+            catch(Throwable throwable) {
+                fault = throwable;
             }
 
             TaskListener<V> taskListener;
@@ -104,7 +104,7 @@ public abstract class Task<V> {
     private ExecutorService executorService;
 
     private V result = null;
-    private Exception fault = null;
+    private Throwable fault = null;
     private TaskListener<V> taskListener = null;
 
     protected volatile long timeout = Long.MAX_VALUE;
@@ -194,7 +194,7 @@ public abstract class Task<V> {
      * has succeeded. Callers should call {@link #isPending()} to distinguish
      * between these cases.
      */
-    public synchronized Exception getFault() {
+    public synchronized Throwable getFault() {
         return fault;
     }