Class PessimisticLockException

  • All Implemented Interfaces:
    java.io.Serializable, ExceptionInfo

    public class PessimisticLockException
    extends jakarta.persistence.PessimisticLockException
    implements java.io.Serializable, ExceptionInfo
    Pessimistic concurrency violation. This exception is always fatal in contrast to LockTimeoutException.
    Since:
    2.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • PessimisticLockException

        public PessimisticLockException​(java.lang.String msg,
                                        java.lang.Throwable[] nested,
                                        java.lang.Object failed)
    • Method Detail

      • isFatal

        public boolean isFatal()
        Description copied from interface: ExceptionInfo
        Whether this error is fatal.
        Specified by:
        isFatal in interface ExceptionInfo
      • getCause

        public java.lang.Throwable getCause()
        Description copied from interface: ExceptionInfo
        Returns the first Throwable from ExceptionInfo.getNestedThrowables() in order to conform to Throwable.getCause() in Java 1.4+.
        Specified by:
        getCause in interface ExceptionInfo
        Overrides:
        getCause in class java.lang.Throwable
        See Also:
        Throwable.getCause()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • printStackTrace

        public void printStackTrace()
        Description copied from interface: ExceptionInfo
        Stack.
        Specified by:
        printStackTrace in interface ExceptionInfo
        Overrides:
        printStackTrace in class java.lang.Throwable
        See Also:
        Throwable.printStackTrace()
      • printStackTrace

        public void printStackTrace​(java.io.PrintStream out)
        Overrides:
        printStackTrace in class java.lang.Throwable
      • printStackTrace

        public void printStackTrace​(java.io.PrintWriter out)
        Overrides:
        printStackTrace in class java.lang.Throwable