Class StructuredTaskScope.FailedException

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

public static final class StructuredTaskScope.FailedException extends RuntimeException
FailedException is a preview API of the Java platform.
Programs can only use FailedException when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Exception thrown by StructuredTaskScope.join()PREVIEW when the outcome is an exception rather than a result.
Since:
24
See Also:
  • Constructor Details

    • FailedException

      public FailedException(Throwable cause)
      Constructs a FailedException with the specified cause.
      Parameters:
      cause - the cause, can be null