Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1003612 - exceptionToStringShort

JavaX fragment (include)

static S exceptionToStringShort(Throwable e) {
  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;
}

Author comment

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/5
Text MD5: 1220c68afe17277dd3150a328c13d6c2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-19 21:41:30
Source code size: 294 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 389 / 875
Version history: 4 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1003612 & http://1003612.tinybrain.de