public class WriteMultipleException extends WriteMultiplePartialFailureException implements Externalizable
Thrown on:
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
.
Modifier and Type | Class and Description |
---|---|
static interface |
WriteMultipleException.IWriteResult |
_results
Constructor and Description |
---|
WriteMultipleException()
Default constructor required by Externalizable.
|
WriteMultipleException(int length,
Throwable e) |
WriteMultipleException(WriteMultipleException.IWriteResult[] results) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Summarize how many success and fail there are for the request, show how much failures for
each type of error.
|
WriteMultipleException.IWriteResult[] |
getResults() |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WriteMultipleException()
public WriteMultipleException(WriteMultipleException.IWriteResult[] results)
results
- array of results values to be sent to user.public WriteMultipleException(int length, Throwable e)
length
- the length of results array.e
- an error value to be used for each value sent to the user.public WriteMultipleException.IWriteResult[] getResults()
getResults
in class WriteMultiplePartialFailureException
public String getMessage()
getMessage
in class Throwable
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © GigaSpaces.