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

13
LINES

< > BotCompany Repo | #1007912 // printStackTrace2 - put exception line last

JavaX fragment (include)

static Throwable printStackTrace2(Throwable e) {
  // we go to system.out now - system.err is nonsense
  print(getStackTrace2(e));
  ret e;
}

static void printStackTrace2() {
  printStackTrace2(new Throwable);
}

static void printStackTrace2(S msg) {
  printStackTrace2(new Throwable(msg));
}

Author comment

Began life as a copy of #1002288

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007912
Snippet name: printStackTrace2 - put exception line last
Eternal ID of this version: #1007912/3
Text MD5: 3675b17fab941f1c6beadb082664ff95
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-05 18:00:24
Source code size: 307 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 515 / 628
Version history: 2 change(s)
Referenced in: [show references]