Jakarta Persistence (JPA) Class

jakarta.persistence.QueryTimeoutException

java.lang.Object
  java.lang.Throwable
    java.lang.Exception
      java.lang.RuntimeException
        jakarta.persistence.PersistenceException
          jakarta.persistence.QueryTimeoutException
Implemented Interfaces:
Serializable

Thrown by the persistence provider when a query times out and only the statement is rolled back. The current transaction, if one is active, will be not be marked for rollback.
Since:
Jakarta Persistence (JPA) 2.0

Public Constructors

Constructs a new QueryTimeoutException exception with null as its detail message.
Since:
Jakarta Persistence (JPA) 1.0
QueryTimeoutException(String message)
Constructs a new QueryTimeoutException exception with the specified detail message.
Parameters:
message - the detail message.
Since:
Jakarta Persistence (JPA) 1.0
QueryTimeoutException(String message, Throwable cause)
Constructs a new QueryTimeoutException exception with the specified detail message and cause.
Parameters:
cause - the cause.
message - the detail message.
Since:
Jakarta Persistence (JPA) 1.0
QueryTimeoutException(Throwable cause)
Constructs a new QueryTimeoutException exception with the specified cause.
Parameters:
cause - the cause.
Since:
Jakarta Persistence (JPA) 1.0
Constructs a new QueryTimeoutException exception with the specified query.
Parameters:
query - the query.
Since:
Jakarta Persistence (JPA) 1.0
QueryTimeoutException(String message, Throwable cause, Query query)
Constructs a new QueryTimeoutException exception with the specified detail message, cause, and query.
Parameters:
cause - the cause.
message - the detail message.
query - the query.
Since:
Jakarta Persistence (JPA) 1.0

Public Instance Methods

Returns the query that caused this exception.
Returns:
the query..
Since:
Jakarta Persistence (JPA) 1.0

Additional JDK methods inherited from java.lang.Throwable

java.lang.Throwable/addSuppressed(Throwable), java.lang.Throwable/fillInStackTrace(), java.lang.Throwable/fillInStackTrace(int), java.lang.Throwable/getCause(), java.lang.Throwable/getLocalizedMessage(), java.lang.Throwable/getMessage(), java.lang.Throwable/getOurStackTrace(), java.lang.Throwable/getStackTrace(), java.lang.Throwable/getSuppressed(), java.lang.Throwable/initCause(Throwable), java.lang.Throwable/lockedPrintStackTrace(PrintStreamOrWriter), java.lang.Throwable/printEnclosedStackTrace(PrintStreamOrWriter,StackTraceElement~,String,String,Set), java.lang.Throwable/printStackTrace(), java.lang.Throwable/printStackTrace(PrintStream), java.lang.Throwable/printStackTrace(PrintStreamOrWriter), java.lang.Throwable/printStackTrace(PrintWriter), java.lang.Throwable/readObject(ObjectInputStream), java.lang.Throwable/setCause(Throwable), java.lang.Throwable/setStackTrace(StackTraceElement~), java.lang.Throwable/toString(), java.lang.Throwable/validateSuppressedExceptionsList(List), java.lang.Throwable/writeObject(ObjectOutputStream)

Additional JDK methods inherited from java.lang.Object

java.lang.Object/clone(), java.lang.Object/equals(Object), java.lang.Object/finalize(), java.lang.Object/getClass(), java.lang.Object/hashCode(), java.lang.Object/notify(), java.lang.Object/notifyAll(), java.lang.Object/wait(), java.lang.Object/wait(long), java.lang.Object/wait(long,int), java.lang.Object/wait0(long)