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:07 UTC
[3/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/90fdeb89
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/90fdeb89
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/90fdeb89
Branch: refs/heads/master
Commit: 90fdeb89497a1e102d71041efa6d2451dd54cb8f
Parents: 69eed82
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Wed Aug 27 12:24:30 2014 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Wed Aug 27 12:24:30 2014 +0300
----------------------------------------------------------------------
wicket-util/src/main/java/org/apache/wicket/util/diff/Delta.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/90fdeb89/wicket-util/src/main/java/org/apache/wicket/util/diff/Delta.java
----------------------------------------------------------------------
diff --git a/wicket-util/src/main/java/org/apache/wicket/util/diff/Delta.java b/wicket-util/src/main/java/org/apache/wicket/util/diff/Delta.java
index f33f0b0..13526b0 100644
--- a/wicket-util/src/main/java/org/apache/wicket/util/diff/Delta.java
+++ b/wicket-util/src/main/java/org/apache/wicket/util/diff/Delta.java
@@ -94,7 +94,7 @@ public abstract class Delta extends ToString
DeltaClass[1][0] = DeleteDelta.class;
DeltaClass[1][1] = ChangeDelta.class;
}
- catch (Throwable ignored)
+ catch (Exception ignored)
{
}
}
@@ -117,7 +117,7 @@ public abstract class Delta extends ToString
{
result = (Delta)c.newInstance();
}
- catch (Throwable e)
+ catch (Exception e)
{
return null;
}