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)

1  
static Throwable printStackTrace2(Throwable e) {
2  
  // we go to system.out now - system.err is nonsense
3  
  print(getStackTrace2(e));
4  
  ret e;
5  
}
6  
7  
static void printStackTrace2() {
8  
  printStackTrace2(new Throwable);
9  
}
10  
11  
static void printStackTrace2(S msg) {
12  
  printStackTrace2(new Throwable(msg));
13  
}

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: 521 / 636
Version history: 2 change(s)
Referenced in: [show references]