Top Description Fields Constructors Methods
org.osgi.util.promise

public Class FailedPromisesException

extends RuntimeException
Class Inheritance
Imports
java.util.Collection, .Collections

Promise failure exception for a collection of failed Promises.
Author
$Id: 8ee90615910def459587ef1fa25432f526655a99 $

Field Summary

Modifier and TypeField and Description
private final Collection<Promise<?>>
private static final long

Constructor Summary

AccessConstructor and Description
public
FailedPromisesException(Collection<Promise<?>>
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.
failed
,
Throwable
The cause of this exception. This is typically the failure of the first Promise in the specified collection.
cause
)

Create a new FailedPromisesException with the specified Promises.

Method Summary

Modifier and TypeMethod and Description
public Collection<Promise<?>>

Returns:

The collection of Promises that have been resolved with a failure. The returned collection is unmodifiable.
getFailedPromises
()

Returns the collection of Promises that have been resolved with a failure.

Field Detail

failedback to summary
private final Collection<Promise<?>> failed
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

FailedPromisesExceptionback to summary
public FailedPromisesException(Collection<Promise<?>> failed, Throwable cause)

Create a new FailedPromisesException with the specified Promises.

Parameters
failed:Collection<Promise<?>>

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:Throwable

The cause of this exception. This is typically the failure of the first Promise in the specified collection.

Method Detail

getFailedPromisesback to summary
public Collection<Promise<?>> getFailedPromises()

Returns the collection of Promises that have been resolved with a failure.

Returns:Collection<Promise<?>>

The collection of Promises that have been resolved with a failure. The returned collection is unmodifiable.