public class QueryException extends StoreException
LOCK, OBJECT_EXISTS, OBJECT_NOT_FOUND, OPTIMISTIC, QUERY, REFERENTIAL_INTEGRITY
GENERAL, 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() |
getType
getCause, getFailedObject, getNestedThrowables, isFatal, printStackTrace, printStackTrace, printStackTrace, setCause, setFailedObject, setFatal, setNestedThrowables
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage
public QueryException(Object failed)
public QueryException(Object failed, int timeout)
public int getSubtype()
OpenJPAException
getSubtype
in interface ExceptionInfo
getSubtype
in class OpenJPAException
public int getTimeout()
public QueryException setTimeout(int timeout)
public String toString()
toString
in class OpenJPAException
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.