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) |
setCauses
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BatchQueryException()
protected BatchQueryException(Throwable cause)
public Throwable[] getCauses()
QueryMultiplePartialFailureException
getCauses
in class QueryMultiplePartialFailureException
public Object[] getResults()
QueryMultiplePartialFailureException
getResults
in class QueryMultiplePartialFailureException
public void setResults(Object[] results)
setResults
in class QueryMultiplePartialFailureException
results
- the results to setpublic Throwable getMajorityCause()
public Throwable getOriginalMajorityCause()
public boolean containsCause(Class<? extends Throwable> exceptionClass)
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.