GigaSpaces XAP 9.0 API

com.gigaspaces.client
Class WriteMultipleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.j_spaces.core.multiple.write.WriteMultiplePartialFailureException
                  extended by com.gigaspaces.client.WriteMultipleException
All Implemented Interfaces:
Externalizable, Serializable

public class WriteMultipleException
extends com.j_spaces.core.multiple.write.WriteMultiplePartialFailureException
implements Externalizable

Thrown when writeMultiple operation fails.

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.

Since:
7.1
Author:
eitany
See Also:
Serialized Form

Nested Class Summary
static interface WriteMultipleException.IWriteResult
           
 
Field Summary
 
Fields inherited from class com.j_spaces.core.multiple.write.WriteMultiplePartialFailureException
_results
 
Constructor Summary
WriteMultipleException()
          Default constructor required by Externalizable.
WriteMultipleException(int length, Throwable e)
           
WriteMultipleException(WriteMultipleException.IWriteResult[] results)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WriteMultipleException

public WriteMultipleException()
Default constructor required by Externalizable.


WriteMultipleException

public WriteMultipleException(WriteMultipleException.IWriteResult[] results)
Parameters:
results - array of results values to be sent to user.

WriteMultipleException

public WriteMultipleException(int length,
                              Throwable e)
Parameters:
length - the length of results array.
e - an error value to be used for each value sent to the user.
Method Detail

getResults

public WriteMultipleException.IWriteResult[] getResults()
Overrides:
getResults in class com.j_spaces.core.multiple.write.WriteMultiplePartialFailureException

getMessage

public String getMessage()
Summarize how many success and fail there are for the request, show how much failures for each type of error.

Overrides:
getMessage in class Throwable

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.