public class BatchQueryException extends QueryMultiplePartialFailureException implements Externalizable
Thrown on:
The exception contains:
Replaced QueryMultiplePartialFailureException.
| Modifier | Constructor and Description |
|---|---|
|
BatchQueryException() |
protected |
BatchQueryException(List<?> results,
List<Throwable> exceptions) |
protected |
BatchQueryException(Object[] results,
List<Throwable> exceptions) |
protected |
BatchQueryException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCause(Class<? extends Throwable> exceptionClass)
Returns true if given exception class is a direct cause of this exception
|
Throwable[] |
getCauses()
Return all the causes that caused this exception
|
Throwable |
getMajorityCause()
Return the main cause for this exception
|
String |
getMessage() |
Throwable |
getOriginalMajorityCause()
Return the original majority cause for this exception
|
Object[] |
getResults()
Return the partial results
|
void |
readExternal(ObjectInput in) |
void |
setResults(Object[] results) |
void |
writeExternal(ObjectOutput out) |
setCausesaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BatchQueryException()
protected BatchQueryException(Throwable cause)
public Throwable[] getCauses()
QueryMultiplePartialFailureExceptiongetCauses in class QueryMultiplePartialFailureExceptionpublic Object[] getResults()
QueryMultiplePartialFailureExceptiongetResults in class QueryMultiplePartialFailureExceptionpublic void setResults(Object[] results)
setResults in class QueryMultiplePartialFailureExceptionresults - the results to setpublic Throwable getMajorityCause()
public Throwable getOriginalMajorityCause()
public boolean containsCause(Class<? extends Throwable> exceptionClass)
public String getMessage()
getMessage in class Throwablepublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © GigaSpaces.