public class FailedPromisesException extends RuntimeException
Constructor and Description |
---|
FailedPromisesException(Collection<Promise<?>> failed,
Throwable cause)
Create a new FailedPromisesException with the specified Promises.
|
Modifier and Type | Method and Description |
---|---|
Collection<Promise<?>> |
getFailedPromises()
Returns the collection of Promises that have been resolved with a
failure.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FailedPromisesException(Collection<Promise<?>> failed, 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 Collection<Promise<?>> getFailedPromises()
Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0