LANG-585. Don't suggest catching Throwable, catch Exception instead.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@906015 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-02-03 11:40:06 +00:00
parent 6b4cb16608
commit 63ad5b063e
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)