commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r906015 - in /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception: ContextedException.java ContextedRuntimeException.java
Date Wed, 03 Feb 2010 11:40:10 GMT
Author: sebb
Date: Wed Feb  3 11:40:06 2010
New Revision: 906015

URL: http://svn.apache.org/viewvc?rev=906015&view=rev
Log:
LANG-585. Don't suggest catching Throwable, catch Exception instead.

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedException.java
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedRuntimeException.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedException.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedException.java?rev=906015&r1=906014&r2=906015&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedException.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedException.java
Wed Feb  3 11:40:06 2010
@@ -38,7 +38,7 @@
  * <pre>
  *   try {
  *     ...
- *   } catch (Throwable e) {
+ *   } catch (Exception e) {
  *     throw new ContextedException("Error posting account transaction", e)
  *          .addValue("accountNumber", accountNumber)
  *          .addValue("amountPosted", amountPosted)

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedRuntimeException.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedRuntimeException.java?rev=906015&r1=906014&r2=906015&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedRuntimeException.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/ContextedRuntimeException.java
Wed Feb  3 11:40:06 2010
@@ -38,7 +38,7 @@
  * <pre>
  *   try {
  *     ...
- *   } catch (Throwable e) {
+ *   } catch (Exception e) {
  *     throw new ContextedException("Error posting account transaction", e)
  *          .addValue("accountNumber", accountNumber)
  *          .addValue("amountPosted", amountPosted)



Mime
View raw message