1 | sS exceptionToStringShorter_dontDropOuterExceptions(Throwable e) {
|
2 | S msg = hideCredentials(unnull(e.getMessage())); |
3 | S className = baseClassName(e); |
4 | if (!eq(className, "RuntimeException") |
5 | && (msg.indexOf("Error") < 0 && msg.indexOf("Exception") < 0))
|
6 | ret className + prependIfNempty(": ", msg);
|
7 | else |
8 | ret msg; |
9 | } |
Began life as a copy of #1033996
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034266 |
| Snippet name: | exceptionToStringShorter_dontDropOuterExceptions |
| Eternal ID of this version: | #1034266/3 |
| Text MD5: | f97da6586c1a056baf6175e0239e81a4 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-29 14:43:11 |
| Source code size: | 337 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 431 / 457 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |