Package com.j_spaces.core.multiple
Class BatchOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.j_spaces.core.multiple.query.QueryMultiplePartialFailureException
com.j_spaces.core.multiple.BatchOperationException
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
public class BatchOperationException
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. </ul.
Replaced
QueryMultiplePartialFailureException.
- Since:
- 7.1
- Author:
- anna
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBatchOperationException(Object[] results, Throwable[] causes) BatchOperationException(List results, List<Throwable> exceptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancontainsCause(Class<? extends Throwable> exceptionClass) Return the main cause for this exceptionReturn the original majority cause for this exceptionvoidvoidMethods inherited from class com.j_spaces.core.multiple.query.QueryMultiplePartialFailureException
getCauses, getResults, setCauses, setResultsMethods 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
-
BatchOperationException
public BatchOperationException() -
BatchOperationException
- Parameters:
results-exceptions-
-
BatchOperationException
- Parameters:
results-causes-
-
-
Method Details
-
clearResults
public void clearResults() -
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
-