com.j_spaces.core.multiple.query
Class QueryMultiplePartialFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.j_spaces.core.multiple.query.QueryMultiplePartialFailureException
All Implemented Interfaces:
Serializable

public class QueryMultiplePartialFailureException
extends RuntimeException

Thrown when read/take multiple is called and and the max limit can't be satisfied because part of the cluster is not avaliable.

Since:
6.6
See Also:
Serialized Form

Constructor Summary
QueryMultiplePartialFailureException(List results, List<Throwable> exceptions)
           
QueryMultiplePartialFailureException(Object[] results, Throwable[] causes)
           
 
Method Summary
 Throwable[] getCauses()
          Return all the causes that caused this exception
 Object[] getResults()
          Return the partial results
 void setResults(Object[] results)
           
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryMultiplePartialFailureException

public QueryMultiplePartialFailureException(Object[] results,
                                            Throwable[] causes)
Parameters:
results - array of results values to be sent to user.

QueryMultiplePartialFailureException

public QueryMultiplePartialFailureException(List results,
                                            List<Throwable> exceptions)
Method Detail

getResults

public Object[] getResults()
Return the partial results

Returns:
the results that are kept by this object.

setResults

public void setResults(Object[] results)
Parameters:
results - the results to set

getCauses

public Throwable[] getCauses()
Return all the causes that caused this exception

Returns:
the causes of this Exception.