Class BatchQueryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.j_spaces.core.multiple.query.QueryMultiplePartialFailureException
com.gigaspaces.internal.exceptions.BatchQueryException
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
ClearException,ReadMultipleException,TakeMultipleException
public class BatchQueryException
extends QueryMultiplePartialFailureException
implements SmartExternalizable
Thrown when one of the following space operations fails: readMultiple,takeMultiple,clear.
Thrown on:
- Partial and complete failure.
- Cluster/single space topologies.
- SQLQueries/Templates.
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 or take.
Replaced QueryMultiplePartialFailureException.
- Since:
- 7.1
- Author:
- anna
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBatchQueryException(Object[] results, List<Throwable> exceptions) protectedBatchQueryException(Throwable cause) protectedBatchQueryException(List<?> results, List<Throwable> exceptions) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsCause(Class<? extends Throwable> exceptionClass) Returns true if given exception class is a direct cause of this exceptionReturn all the causes that caused this exceptionReturn the main cause for this exceptionReturn the original majority cause for this exceptionObject[]Return the partial resultsvoidvoidsetResults(Object[] results) voidMethods inherited from class com.j_spaces.core.multiple.query.QueryMultiplePartialFailureException
setCausesMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
BatchQueryException
public BatchQueryException() -
BatchQueryException
-
BatchQueryException
-
BatchQueryException
-
-
Method Details
-
getCauses
Description copied from class:QueryMultiplePartialFailureExceptionReturn all the causes that caused this exception- Overrides:
getCausesin classQueryMultiplePartialFailureException- Returns:
- the causes of this Exception.
-
getResults
Description copied from class:QueryMultiplePartialFailureExceptionReturn the partial results- Overrides:
getResultsin classQueryMultiplePartialFailureException- Returns:
- the results that are kept by this object.
-
setResults
- Overrides:
setResultsin classQueryMultiplePartialFailureException- Parameters:
results- the results to set
-
getMajorityCause
Return the main cause for this exception- Returns:
- the main cause.
-
getOriginalMajorityCause
Return the original majority cause for this exception- Returns:
- the main cause.
-
containsCause
Returns true if given exception class is a direct cause of this exception -
getMessage
- Overrides:
getMessagein classThrowable
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-