Libraryless. Click here for Pure Java version (9559L/54K).
sS exceptionToStringShort(Throwable e) { try { lastException(e); e = getInnerException(e); S msg = hideCredentials(unnull(e.getMessage())); if (msg.indexOf("Error") < 0 && msg.indexOf("Exception") < 0) ret baseClassName(e) + prependIfNempty(": ", msg); else ret msg; } catch print _e { ret "Error in exceptionToStringShort"; } }
Began life as a copy of #1002197
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003612 |
Snippet name: | exceptionToStringShort |
Eternal ID of this version: | #1003612/7 |
Text MD5: | 82177bf297234829c9bafc8a7909b03c |
Transpilation MD5: | 803ee2a3b33a1a08447550c2d0f8725a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-06-27 04:49:41 |
Source code size: | 382 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 646 / 1197 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1033996 - exceptionToStringShorter - drop "RuntimeException" prefix #1034258 - exceptionType |