Package org.osgi.util.promise
Class FailedPromisesException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- java.lang.RuntimeException
 - 
- org.osgi.util.promise.FailedPromisesException
 
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
public class FailedPromisesException extends java.lang.RuntimeExceptionPromise failure exception for a collection of failed Promises.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FailedPromisesException(java.util.Collection<Promise<?>> failed, java.lang.Throwable cause)Create a new FailedPromisesException with the specified Promises. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Promise<?>>getFailedPromises()Returns the collection of Promises that have been resolved with a failure. 
 - 
 
- 
- 
Constructor Detail
- 
FailedPromisesException
public FailedPromisesException(java.util.Collection<Promise<?>> failed, java.lang.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 benull, must not be empty and all of the elements in the collection must not benull.cause- The cause of this exception. This is typically the failure of the first Promise in the specified collection.
 
 - 
 
- 
Method Detail
- 
getFailedPromises
public java.util.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.
 
 
 - 
 
 -