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:
parent
6b4cb16608
commit
63ad5b063e
|
@ -38,7 +38,7 @@
|
||||||
* <pre>
|
* <pre>
|
||||||
* try {
|
* try {
|
||||||
* ...
|
* ...
|
||||||
* } catch (Throwable e) {
|
* } catch (Exception e) {
|
||||||
* throw new ContextedException("Error posting account transaction", e)
|
* throw new ContextedException("Error posting account transaction", e)
|
||||||
* .addValue("accountNumber", accountNumber)
|
* .addValue("accountNumber", accountNumber)
|
||||||
* .addValue("amountPosted", amountPosted)
|
* .addValue("amountPosted", amountPosted)
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
* <pre>
|
* <pre>
|
||||||
* try {
|
* try {
|
||||||
* ...
|
* ...
|
||||||
* } catch (Throwable e) {
|
* } catch (Exception e) {
|
||||||
* throw new ContextedException("Error posting account transaction", e)
|
* throw new ContextedException("Error posting account transaction", e)
|
||||||
* .addValue("accountNumber", accountNumber)
|
* .addValue("accountNumber", accountNumber)
|
||||||
* .addValue("amountPosted", amountPosted)
|
* .addValue("amountPosted", amountPosted)
|
||||||
|
|
Loading…
Reference in New Issue