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>
FailedException
is a preview API of the Java platform.
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 Summary
ConstructorDescriptionFailedException
(Throwable cause) Constructs aFailedException
with the specified cause. -
Method Summary
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FailedException
Constructs aFailedException
with the specified cause.- Parameters:
cause
- the cause, can benull
-
FailedException
when preview features are enabled.