Package org.hibernate
Class PessimisticLockException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.JDBCException
-
- org.hibernate.PessimisticLockException
-
- All Implemented Interfaces:
Serializable
public class PessimisticLockException extends JDBCException
Thrown when a pessimistic locking conflict occurs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PessimisticLockException(String message, SQLException sqlException, String sql)
Constructs a PessimisticLockException using the specified information.
-
Method Summary
-
Methods inherited from class org.hibernate.JDBCException
getErrorCode, 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
-
PessimisticLockException
public PessimisticLockException(String message, SQLException sqlException, String sql)
Constructs a PessimisticLockException using the specified information.- Parameters:
message
- A message explaining the exception conditionsqlException
- The underlying SQL exceptionsql
- The sql that led to the exception (may be null, though usually should not be)
-
-