You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2014/08/27 11:41:06 UTC

[2/4] git commit: Do not catch Throwable but Exception

Do not catch Throwable but Exception


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/69eed82d
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/69eed82d
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/69eed82d

Branch: refs/heads/master
Commit: 69eed82db533f7de8b70c4a2ed808716941c3303
Parents: c5db298
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Wed Aug 27 12:22:28 2014 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Wed Aug 27 12:22:28 2014 +0300

----------------------------------------------------------------------
 wicket-core/src/main/java/org/apache/wicket/Component.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/69eed82d/wicket-core/src/main/java/org/apache/wicket/Component.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/Component.java b/wicket-core/src/main/java/org/apache/wicket/Component.java
index 0d0f406..a47d728 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Component.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Component.java
@@ -2398,7 +2398,7 @@ public abstract class Component
 				{
 					behavior.onException(this, ex);
 				}
-				catch (Throwable ex2)
+				catch (Exception ex2)
 				{
 					log.error("Error while cleaning up after exception", ex2);
 				}