Libraryless. Click here for Pure Java version (5356L/29K).
1 | sclass TimeoutException_Inner extends RuntimeExceptionWithCustomStackTrace { |
2 | Thread thread; |
3 | double timeoutSeconds; |
4 | O function; |
5 | |
6 | *(double *timeoutSeconds, |
7 | O *function, |
8 | Thread *thread) { |
9 | super("Timeout after " + iceil(timeoutSeconds) + "s by " + shorten_str(function), |
10 | new Throwable("Caller"), |
11 | thread.getStackTrace()); |
12 | } |
13 | } |
Began life as a copy of #1034249
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034838 |
Snippet name: | TimeoutException_Inner - makes the thread's stack trace the main one |
Eternal ID of this version: | #1034838/4 |
Text MD5: | 9abddc6d9b733f6afd4a8b30b25e5388 |
Transpilation MD5: | aed681586a38defa40b9001c4bca7a10 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-11 03:38:03 |
Source code size: | 366 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 139 / 252 |
Version history: | 3 change(s) |
Referenced in: | [show references] |