static Throwable exceptionForTimeoutedThread(Thread thread) { var stackTrace = thread.getStackTrace(); var cause = new ThrowableWithCustomStackTrace("Still calculating", stackTrace); ret cause; }