Libraryless. Click here for Pure Java version (4508L/25K).
1 | static <A extends Throwable> A printStackTrace(A e) {
|
2 | // we go to system.out now - system.err is nonsense |
3 | if (e != null) print(getStackTrace(e)); |
4 | ret e; |
5 | } |
6 | |
7 | static void printStackTrace() {
|
8 | printStackTrace(new Throwable()); |
9 | } |
10 | |
11 | static void printStackTrace(S msg) {
|
12 | printStackTrace(new Throwable(msg)); |
13 | } |
14 | |
15 | static void printStackTrace(S msg, Throwable e) {
|
16 | printStackTrace(new Throwable(msg, e)); |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 24 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, jtubtzbbkimh, lnbujpyubztb, lpdgvwnxivlt, mowyntqkapby, 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/8 |
| Text MD5: | 1305dc40cb8b9e292d74756671c21f77 |
| Transpilation MD5: | 55fdbbf83c540907681b2db4f2fcd878 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-27 14:56:56 |
| Source code size: | 421 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1696 / 6538 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |