java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
jakarta.persistence.QueryTimeoutException
- All 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:
 - 2.0
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newQueryTimeoutExceptionexception withnullas its detail message.QueryTimeoutException(Query query) Constructs a newQueryTimeoutExceptionexception with the specified query.QueryTimeoutException(String message) Constructs a newQueryTimeoutExceptionexception with the specified detail message.QueryTimeoutException(String message, Throwable cause) Constructs a newQueryTimeoutExceptionexception with the specified detail message and cause.QueryTimeoutException(String message, Throwable cause, Query query) Constructs a newQueryTimeoutExceptionexception with the specified detail message, cause, and query.QueryTimeoutException(Throwable cause) Constructs a newQueryTimeoutExceptionexception with the specified cause. - 
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
QueryTimeoutException
public QueryTimeoutException()Constructs a newQueryTimeoutExceptionexception withnullas its detail message. - 
QueryTimeoutException
Constructs a newQueryTimeoutExceptionexception with the specified detail message.- Parameters:
 message- the detail message.
 - 
QueryTimeoutException
 - 
QueryTimeoutException
Constructs a newQueryTimeoutExceptionexception with the specified cause.- Parameters:
 cause- the cause.
 - 
QueryTimeoutException
Constructs a newQueryTimeoutExceptionexception with the specified query.- Parameters:
 query- the query.
 - 
QueryTimeoutException
 
 - 
 - 
Method Details
- 
getQuery
 
 -