You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by jv...@apache.org on 2013/06/10 22:53:00 UTC

git commit: avoid catching throwable

Updated Branches:
  refs/heads/trunk 411ed0049 -> 5f296c6aa


avoid catching throwable


Project: http://git-wip-us.apache.org/repos/asf/mina/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/5f296c6a
Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/5f296c6a
Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/5f296c6a

Branch: refs/heads/trunk
Commit: 5f296c6aa1592dd615fd8cbcd017f9da94c7003f
Parents: 411ed00
Author: jvermillard <jv...@apache.org>
Authored: Mon Jun 10 22:52:20 2013 +0200
Committer: jvermillard <jv...@apache.org>
Committed: Mon Jun 10 22:52:20 2013 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/mina/session/AbstractIoSession.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina/blob/5f296c6a/core/src/main/java/org/apache/mina/session/AbstractIoSession.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/mina/session/AbstractIoSession.java b/core/src/main/java/org/apache/mina/session/AbstractIoSession.java
index 7d061ed..3ea614a 100644
--- a/core/src/main/java/org/apache/mina/session/AbstractIoSession.java
+++ b/core/src/main/java/org/apache/mina/session/AbstractIoSession.java
@@ -844,14 +844,14 @@ public abstract class AbstractIoSession implements IoSession, ReadFilterChainCon
 
             try {
                 remote = String.valueOf(getRemoteAddress());
-            } catch (Throwable t) {
-                remote = "Cannot get the remote address informations: " + t.getMessage();
+            } catch (Exception e) {
+                remote = "Cannot get the remote address informations: " + e.getMessage();
             }
 
             try {
                 local = String.valueOf(getLocalAddress());
-            } catch (Throwable t) {
-                local = "Cannot get the local address informations: " + t.getMessage();
+            } catch (Exception e) {
+                local = "Cannot get the local address informations: " + e.getMessage();
             }
 
             if (getService() instanceof IoServer) {