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

11
LINES

< > BotCompany Repo | #1034249 // TimeoutException

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5478L/30K).

srecord noeq TimeoutException(double timeoutSeconds,
  O function,
  Thread thread) extends RuntimeException {

  // !customConstructor
  *(double *timeoutSeconds,
    O *function,
    Thread *thread) {
    super("Timeout after " + iceil(timeoutSeconds) + "s by " + shorten_str(function), exceptionForTimeoutedThread(thread));
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034249
Snippet name: TimeoutException
Eternal ID of this version: #1034249/18
Text MD5: 7c7b5c346e3f9cd384c2c62566402b48
Transpilation MD5: b236234e6b2ee9e725cde1a85d8aac0d
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:29:23
Source code size: 342 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 223 / 391
Version history: 17 change(s)
Referenced in: #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167)
#1034832 - TimeoutException using getCause() - doesn't work because they are from different threads. I guess!?
#1034838 - TimeoutException_Inner - makes the thread's stack trace the main one