org.openspaces.core
Class ReadMultipleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.NonTransientDataAccessException
org.springframework.dao.InvalidDataAccessResourceUsageException
org.openspaces.core.QueryMultiplePartialFailureException
org.openspaces.core.ReadMultipleException
- All Implemented Interfaces:
- Serializable
public class ReadMultipleException
- extends QueryMultiplePartialFailureException
Thrown when a readMultiple space operations fails.
Thrown on:
- Partial and complete failure.
- Cluster/single space topologies.
- SQLQueries/Templates.
At space level - the failure is fail-fast - once an operation on an object failed - exception is returned immediately and no other objects are processed.
At cluster level - if one of operation target spaces fails, first completion of the operation on other spaces is done.
Then the aggregated exception is thrown.
The exception contains:
- An array of exceptions that caused it. One exception per each space that failed.
- An array of entries that were successfully read .
Replaced QueryMultiplePartialFailureException
.
- Since:
- 7.1
- Author:
- anna
- See Also:
- Serialized Form
Method Summary |
Throwable[] |
getCauses()
Returns the exceptions raised from the cluster members that were not available. |
Object[] |
getResults()
Returnst the results from the cluster members that were available. |
ReadMultipleException
public ReadMultipleException(ReadMultipleException cause,
ExceptionTranslator exceptionTranslator)
- Parameters:
cause
- exceptionTranslator
-
getCauses
public Throwable[] getCauses()
- Description copied from class:
QueryMultiplePartialFailureException
- Returns the exceptions raised from the cluster members that were not available.
- Overrides:
getCauses
in class QueryMultiplePartialFailureException
getResults
public Object[] getResults()
- Description copied from class:
QueryMultiplePartialFailureException
- Returnst the results from the cluster members that were available.
- Overrides:
getResults
in class QueryMultiplePartialFailureException
Copyright © GigaSpaces.