Package org.openspaces.core
Class TakeMultipleException
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.TakeMultipleException
- All Implemented Interfaces:
Serializable
Thrown when a takeMultiple space operations fails.
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.
Thrown on:
- Partial and complete failure.
- Cluster/single space topologies.
- SQLQueries/Templates.
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 taken.
Replaced QueryMultiplePartialFailureException.
- Since:
- 7.1
- Author:
- anna
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTakeMultipleException(TakeMultipleException cause, ExceptionTranslator exceptionTranslator) -
Method Summary
Modifier and TypeMethodDescriptionReturns the exceptions raised from the cluster members that were not available.Object[]Returnst the results from the cluster members that were available.Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TakeMultipleException
- Parameters:
cause-exceptionTranslator-
-
-
Method Details
-
getCauses
Description copied from class:QueryMultiplePartialFailureExceptionReturns the exceptions raised from the cluster members that were not available.- Overrides:
getCausesin classQueryMultiplePartialFailureException
-
getResults
Description copied from class:QueryMultiplePartialFailureExceptionReturnst the results from the cluster members that were available.- Overrides:
getResultsin classQueryMultiplePartialFailureException
-