Package org.hibernate

Class PessimisticLockException

  • All Implemented Interfaces:
    java.io.Serializable

    public class PessimisticLockException
    extends JDBCException
    Thrown when a pessimistic locking conflict occurs.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PessimisticLockException​(java.lang.String message, java.sql.SQLException sqlException, java.lang.String sql)
      Constructs a PessimisticLockException using the specified information.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PessimisticLockException

        public PessimisticLockException​(java.lang.String message,
                                        java.sql.SQLException sqlException,
                                        java.lang.String sql)
        Constructs a PessimisticLockException using the specified information.
        Parameters:
        message - A message explaining the exception condition
        sqlException - The underlying SQL exception
        sql - The sql that led to the exception (may be null, though usually should not be)