Class StructuredTaskScope.CancelledByTimeoutException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.concurrent.StructuredTaskScope.CancelledByTimeoutException
All Implemented Interfaces:
Serializable
Enclosing interface:
StructuredTaskScopePREVIEW<T, R, R_X extends Throwable>

public static final class StructuredTaskScope.CancelledByTimeoutException extends RuntimeException
CancelledByTimeoutException is a preview API of the Java platform.
Programs can only use CancelledByTimeoutException when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
The exception cause when join()PREVIEW throws because the scope was cancelled by a timeout.
Since:
27
See Also:
  • Constructor Details

    • CancelledByTimeoutException

      public CancelledByTimeoutException()
      Constructs a CancelledByTimeoutException with no detail message.