com.j_spaces.core.multiple.write
Class WriteMultiplePartialFailureException

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
All Implemented Interfaces:
Serializable

public class WriteMultiplePartialFailureException
extends RuntimeException

WriteMultiplePartialFailureException is thrown when write multiple is called and for some reason the insertion of some of the entries was failed.

Since:
6.5
See Also:
UnknownTypeException, com.j_spaces.core.UnusableEntryException, Serialized Form

Constructor Summary
WriteMultiplePartialFailureException(int length, Throwable e)
           
WriteMultiplePartialFailureException(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.
 IWriteResult[] getResults()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WriteMultiplePartialFailureException

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

WriteMultiplePartialFailureException

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

getResults

public IWriteResult[] getResults()
Returns:
the results that are kept by this object.

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