Package org.apache.openjpa.persistence
Class OptimisticLockException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- jakarta.persistence.OptimisticLockException
-
- org.apache.openjpa.persistence.OptimisticLockException
-
- All Implemented Interfaces:
java.io.Serializable,ExceptionInfo
public class OptimisticLockException extends jakarta.persistence.OptimisticLockException implements java.io.Serializable, ExceptionInfo
Optimistic concurrency violation.- Since:
- 0.4.0
- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED
-
-
Constructor Summary
Constructors Constructor Description OptimisticLockException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed, boolean fatal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()Returns the firstThrowablefromExceptionInfo.getNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.java.lang.ObjectgetFailedObject()The failed object.java.lang.Throwable[]getNestedThrowables()The nested throwables.intgetSubtype()Exception subtype.intgetType()Exception type.booleanisFatal()Whether this error is fatal.voidprintStackTrace()Stack.voidprintStackTrace(java.io.PrintStream out)voidprintStackTrace(java.io.PrintWriter out)java.lang.StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.openjpa.util.ExceptionInfo
getMessage
-
-
-
-
Method Detail
-
getType
public int getType()
Description copied from interface:ExceptionInfoException type.- Specified by:
getTypein interfaceExceptionInfo
-
getSubtype
public int getSubtype()
Description copied from interface:ExceptionInfoException subtype.- Specified by:
getSubtypein interfaceExceptionInfo
-
isFatal
public boolean isFatal()
Description copied from interface:ExceptionInfoWhether this error is fatal.- Specified by:
isFatalin interfaceExceptionInfo
-
getCause
public java.lang.Throwable getCause()
Description copied from interface:ExceptionInfoReturns the firstThrowablefromExceptionInfo.getNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.- Specified by:
getCausein interfaceExceptionInfo- Overrides:
getCausein classjava.lang.Throwable- See Also:
Throwable.getCause()
-
getNestedThrowables
public java.lang.Throwable[] getNestedThrowables()
Description copied from interface:ExceptionInfoThe nested throwables.- Specified by:
getNestedThrowablesin interfaceExceptionInfo
-
getFailedObject
public java.lang.Object getFailedObject()
Description copied from interface:ExceptionInfoThe failed object.- Specified by:
getFailedObjectin interfaceExceptionInfo
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
printStackTrace
public void printStackTrace()
Description copied from interface:ExceptionInfoStack.- Specified by:
printStackTracein interfaceExceptionInfo- Overrides:
printStackTracein classjava.lang.Throwable- See Also:
Throwable.printStackTrace()
-
printStackTrace
public void printStackTrace(java.io.PrintStream out)
- Overrides:
printStackTracein classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintWriter out)
- Overrides:
printStackTracein classjava.lang.Throwable
-
-