You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by se...@apache.org on 2015/07/22 15:12:56 UTC

incubator-ignite git commit: # IGNITE-1121 Use Exception instead of Throwable.

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-1121 3a9580d2d -> 1adbcfc60


# IGNITE-1121 Use Exception instead of Throwable.


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

Branch: refs/heads/ignite-1121
Commit: 1adbcfc600c618aae14c01d644c1709cd8bb707d
Parents: 3a9580d
Author: sevdokimov <se...@jetbrains.com>
Authored: Wed Jul 22 16:12:44 2015 +0300
Committer: sevdokimov <se...@jetbrains.com>
Committed: Wed Jul 22 16:12:44 2015 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/agent/AgentSocket.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/1adbcfc6/modules/control-center-agent/src/main/java/org/apache/ignite/agent/AgentSocket.java
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/AgentSocket.java b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/AgentSocket.java
index 1c418fa..01b660f 100644
--- a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/AgentSocket.java
+++ b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/AgentSocket.java
@@ -69,7 +69,7 @@ public class AgentSocket {
 
         try {
             ses.getRemote().sendString(MessageFactory.toString(authMsg));
-        } catch (Throwable t) {
+        } catch (IOException t) {
             t.printStackTrace();
         }
     }
@@ -112,7 +112,7 @@ public class AgentSocket {
             try {
                 restRes = agent.executeRest(restReq);
             }
-            catch (Throwable e) {
+            catch (Exception e) {
                 restRes = new RestResult();
 
                 restRes.setCode(500);