You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2014/09/11 16:01:22 UTC

git commit: Don't catch Throwable. Catch Exception only (DIRMINA-941)

Repository: mina
Updated Branches:
  refs/heads/2.0 af34f5087 -> 1c95e0ddf


Don't catch Throwable. Catch Exception only (DIRMINA-941)

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

Branch: refs/heads/2.0
Commit: 1c95e0ddfce293abaa0821ebecba17ab84951fed
Parents: af34f50
Author: Emmanuel Lécharny <el...@symas.com>
Authored: Thu Sep 11 15:58:03 2014 +0200
Committer: Emmanuel Lécharny <el...@symas.com>
Committed: Thu Sep 11 15:58:03 2014 +0200

----------------------------------------------------------------------
 .../org/apache/mina/core/filterchain/DefaultIoFilterChain.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina/blob/1c95e0dd/mina-core/src/main/java/org/apache/mina/core/filterchain/DefaultIoFilterChain.java
----------------------------------------------------------------------
diff --git a/mina-core/src/main/java/org/apache/mina/core/filterchain/DefaultIoFilterChain.java b/mina-core/src/main/java/org/apache/mina/core/filterchain/DefaultIoFilterChain.java
index 5196d49..ea2d3ab 100644
--- a/mina-core/src/main/java/org/apache/mina/core/filterchain/DefaultIoFilterChain.java
+++ b/mina-core/src/main/java/org/apache/mina/core/filterchain/DefaultIoFilterChain.java
@@ -600,7 +600,7 @@ public class DefaultIoFilterChain implements IoFilterChain {
             IoFilter filter = entry.getFilter();
             NextFilter nextFilter = entry.getNextFilter();
             filter.filterClose(nextFilter, session);
-        } catch (Throwable e) {
+        } catch (Exception e) {
             fireExceptionCaught(e);
         }
     }