public class QueryException extends StoreException
LOCK, OBJECT_EXISTS, OBJECT_NOT_FOUND, OPTIMISTIC, QUERY, REFERENTIAL_INTEGRITYGENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED| Constructor and Description |
|---|
QueryException(Object failed) |
QueryException(Object failed,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
int |
getSubtype()
Exception subtype.
|
int |
getTimeout()
The number of milliseconds to wait for a query to complete.
|
QueryException |
setTimeout(int timeout)
The number of milliseconds to wait for a query to complete.
|
String |
toString() |
getTypegetCause, getFailedObject, getNestedThrowables, isFatal, printStackTrace, printStackTrace, printStackTrace, setCause, setFailedObject, setFatal, setNestedThrowablesaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessagepublic QueryException(Object failed)
public QueryException(Object failed, int timeout)
public int getSubtype()
OpenJPAExceptiongetSubtype in interface ExceptionInfogetSubtype in class OpenJPAExceptionpublic int getTimeout()
public QueryException setTimeout(int timeout)
public String toString()
toString in class OpenJPAExceptionCopyright © 2006–2022 Apache Software Foundation. All rights reserved.