Package org.hibernate
Class QueryTimeoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.JDBCException
-
- org.hibernate.QueryTimeoutException
-
- All Implemented Interfaces:
Serializable
public class QueryTimeoutException extends JDBCException
Thrown when a database query timeout occurs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryTimeoutException(String message, SQLException sqlException, String sql)
Constructs aQueryTimeoutException
using the supplied information.
-
Method Summary
-
Methods inherited from class org.hibernate.JDBCException
getErrorCode, getErrorMessage, getSQL, getSQLException, getSQLState
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
QueryTimeoutException
public QueryTimeoutException(String message, SQLException sqlException, String sql)
Constructs aQueryTimeoutException
using the supplied information.- Parameters:
message
- The message explaining the exception conditionsqlException
- The underlying SQLExceptionsql
- The sql being executed when the exception occurred.
-
-