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

18
LINES

< > BotCompany Repo | #1000889 // getStackTrace

JavaX fragment (include)

static String getStackTrace(Throwable throwable) {
  lastException(throwable);
  ret getStackTrace_noRecord(throwable);
}

static String getStackTrace_noRecord(Throwable throwable) {
  StringWriter writer = new StringWriter();
  throwable.printStackTrace(new PrintWriter(writer));
  return hideCredentials(writer.toString());
}

sS getStackTrace() {
  ret getStackTrace_noRecord(new Throwable);
}

sS getStackTrace(S msg) {
  ret getStackTrace_noRecord(new Throwable(msg));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1000889
Snippet name: getStackTrace
Eternal ID of this version: #1000889/6
Text MD5: 674a7012490ab45540baa2c3cbbd1956
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-04 07:40:39
Source code size: 492 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 778 / 6450
Version history: 5 change(s)
Referenced in: [show references]