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

17
LINES

< > BotCompany Repo | #1002288 - printStackTrace

JavaX fragment (include)

static <A extends Throwable> A printStackTrace(A e) {
  // we go to system.out now - system.err is nonsense
  print(getStackTrace(e));
  ret e;
}

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

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

static void printStackTrace(S msg, Throwable e) {
  printStackTrace(new Throwable(msg, e));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 23 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, jtubtzbbkimh, lnbujpyubztb, lpdgvwnxivlt, mqqgnosmbjvj, mqsvbyillbrs, odhhsrjjbcgr, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1002288
Snippet name: printStackTrace
Eternal ID of this version: #1002288/6
Text MD5: 1fd1b713f4e5cf2fa3bbbbd73a33cf32
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-02 14:00:40
Source code size: 406 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 629 / 5198
Version history: 5 change(s)
Referenced in: [show references]

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