Knopflerfish OSGi 6.0.0

org.osgi.util.promise
Class FailedPromisesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.osgi.util.promise.FailedPromisesException
All Implemented Interfaces:
java.io.Serializable

public class FailedPromisesException
extends java.lang.RuntimeException

Promise failure exception for a collection of failed Promises.

Author:
$Id: 95546abe53fcca0c3daa3d2847a915fe94b9cef8 $
See Also:
Serialized Form

Constructor Summary
FailedPromisesException(java.util.Collection<Promise<?>> failed, java.lang.Throwable cause)
          Create a new FailedPromisesException with the specified Promises.
 
Method Summary
 java.util.Collection<Promise<?>> getFailedPromises()
          Returns the collection of Promises that have been resolved with a failure.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 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 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.

Knopflerfish OSGi 6.0.0