JPA Exception

QueryTimeoutException

java.lang.Object
  ∟ java.lang.Throwable
    ∟ java.lang.Exception
      ∟ java.lang.RuntimeException
        ∟ javax.persistence.PersistenceException
          ∟ javax.persistence.QueryTimeoutException

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:
JPA 2.0

Public Constructors

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

Public Methods

Returns the query that caused this exception.
Return:
the query.
Since:
JPA 2.0

Method inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Method inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait