public class FailedPromisesException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Promise<?>> |
failed |
private static long |
serialVersionUID |
Constructor and Description |
---|
FailedPromisesException(java.util.Collection<Promise<?>> failed,
java.lang.Throwable cause)
Create a new FailedPromisesException with the specified Promises.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Promise<?>> |
getFailedPromises()
Returns the collection of Promises that have been resolved with a
failure.
|
private static final long serialVersionUID
private final java.util.Collection<Promise<?>> failed
public FailedPromisesException(java.util.Collection<Promise<?>> failed, java.lang.Throwable cause)
failed
- A collection of Promises that have been resolved with a
failure. Must not be null
, must not be empty and all of
the elements in the collection must not be null
.cause
- The cause of this exception. This is typically the failure
of the first Promise in the specified collection.public java.util.Collection<Promise<?>> getFailedPromises()