1 | // also logs full exception to console |
2 | static S formatExceptionForUser(Throwable e) { |
3 | printStackTrace(e); |
4 | S msg = unnull(e.getMessage()); |
5 | if (msg.indexOf("Error") < 0 && msg.indexOf("Exception") < 0) |
6 | ret dropPrefix("java.lang.", str(e)); |
7 | else |
8 | ret msg; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002197 |
Snippet name: | formatExceptionForUser |
Eternal ID of this version: | #1002197/1 |
Text MD5: | 9a5360ca19024a462ceaa309a682d7e2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-03-06 02:57:18 |
Source code size: | 277 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 713 / 1726 |
Referenced in: | [show references] |