Package com.gigaspaces.client
Class WriteMultipleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.j_spaces.core.multiple.write.WriteMultiplePartialFailureException
com.gigaspaces.client.WriteMultipleException
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
public class WriteMultipleException
extends WriteMultiplePartialFailureException
implements SmartExternalizable
Thrown when writeMultiple operation fails.
Thrown on:
- Partial and complete failure.
- Cluster/single space topologies.
The exception contains an array of write results where each result in the array is either a lease or an exception upon failure, the result index corresponds to the entry index in the array of entries which are being written/updated.
Replaced WriteMultiplePartialFailureException.
- Since:
- 7.1
- Author:
- eitany
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.j_spaces.core.multiple.write.WriteMultiplePartialFailureException
_results -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor required by Externalizable.WriteMultipleException(int length, Throwable e) -
Method Summary
Modifier and TypeMethodDescriptionSummarize how many success and fail there are for the request, show how much failures for each type of error.voidvoidMethods 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
-
WriteMultipleException
public WriteMultipleException()Default constructor required by Externalizable. -
WriteMultipleException
- Parameters:
results- array of results values to be sent to user.
-
WriteMultipleException
- Parameters:
length- the length of results array.e- an error value to be used for each value sent to the user.
-
-
Method Details
-
getResults
- Overrides:
getResultsin classWriteMultiplePartialFailureException- Returns:
- the results that are kept by this object.
-
getMessage
Summarize how many success and fail there are for the request, show how much failures for each type of error.- Overrides:
getMessagein classThrowable
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-