ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [36/50] incubator-ignite git commit: sprint-4: Refactoring of Error handling.
Date Mon, 27 Apr 2015 12:30:35 GMT
sprint-4: Refactoring of Error handling.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/0a173f46
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/0a173f46
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/0a173f46

Branch: refs/heads/ignite-648
Commit: 0a173f46cb2f0ab9118d3a98b420c48762410304
Parents: 2b50fbd
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Fri Apr 24 14:08:15 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Fri Apr 24 14:08:15 2015 +0700

----------------------------------------------------------------------
 .../visor/node/VisorNodeDataCollectorJob.java        | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0a173f46/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorNodeDataCollectorJob.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorNodeDataCollectorJob.java
b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorNodeDataCollectorJob.java
index ceead59..1f58563 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorNodeDataCollectorJob.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorNodeDataCollectorJob.java
@@ -103,11 +103,8 @@ public class VisorNodeDataCollectorJob extends VisorJob<VisorNodeDataCollectorTa
 
             events0(res, arg.eventsOrderKey(), arg.eventsThrottleCounterKey(), arg.taskMonitoringEnabled());
         }
-        catch (Throwable eventsEx) {
+        catch (Exception eventsEx) {
             res.eventsEx(eventsEx);
-
-            if (eventsEx instanceof Error)
-                throw eventsEx;
         }
     }
 
@@ -140,11 +137,8 @@ public class VisorNodeDataCollectorJob extends VisorJob<VisorNodeDataCollectorTa
                 }
             }
         }
-        catch (Throwable cachesEx) {
+        catch (Exception cachesEx) {
             res.cachesEx(cachesEx);
-
-            if (cachesEx instanceof Error)
-                throw (Error)cachesEx;
         }
     }
 
@@ -178,11 +172,8 @@ public class VisorNodeDataCollectorJob extends VisorJob<VisorNodeDataCollectorTa
                 }
             }
         }
-        catch (Throwable igfssEx) {
+        catch (Exception igfssEx) {
             res.igfssEx(igfssEx);
-
-            if (igfssEx instanceof Error)
-                throw igfssEx;
         }
     }
 


Mime
View raw message