net.sf.asyncobjects.util
Class WaitAllException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.asyncobjects.util.WaitAllException
- All Implemented Interfaces:
- Serializable
public class WaitAllException
- extends RuntimeException
This exception is thrown from Wait.all operation if there are failures. The
first exception from the list of the failures is treated as cause exception.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
WaitAllException
public WaitAllException(List<Object> partialResults,
List<Throwable> failures)
- A constructor from partial results and failures
- Parameters:
partialResults
- a list with partial results. Results positions correspond to
promise positions in original array.failures
- a list of exceptions with which promises were smashed.
Exception positions correspond to promise positions in
original array.
getPartialResults
public List<Object> getPartialResults()
- Returns:
- a list with partial results. Results positions correspond to
promise positions in original array.
getFailures
public List<Throwable> getFailures()
- Returns:
- a list of exceptions with which promises were smashed.
Exception's positions correspond to promise positions in original
array.
Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.