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: 
 - Externalizable, Serializable
 
public class WriteMultipleException
- extends com.j_spaces.core.multiple.write.WriteMultiplePartialFailureException
- implements Externalizable
  
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:
 - Serialized Form
 
 
 
| Fields inherited from class com.j_spaces.core.multiple.write.WriteMultiplePartialFailureException | 
_results | 
 
 
 
 
 
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.
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
 
Copyright © GigaSpaces.