net.sf.asyncobjects.util
Class WaitAllException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
WaitAllException(List<Object> partialResults, List<Throwable> failures)
          A constructor from partial results and failures
 
Method Summary
 List<Throwable> getFailures()
           
 List<Object> getPartialResults()
           
 
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

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

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.