Class FailedPromisesException

All Implemented Interfaces:
Serializable

public class FailedPromisesException extends RuntimeException
Promise failure exception for a collection of failed Promises.
See Also:
  • Constructor Details

    • FailedPromisesException

      public FailedPromisesException(Collection<Promise<?>> failed, Throwable cause)
      Create a new FailedPromisesException with the specified Promises.
      Parameters:
      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.
  • Method Details

    • getFailedPromises

      public Collection<Promise<?>> getFailedPromises()
      Returns the collection of Promises that have been resolved with a failure.
      Returns:
      The collection of Promises that have been resolved with a failure. The returned collection is unmodifiable.