|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.persistence.PersistenceException
javax.persistence.PessimisticLockException
org.apache.openjpa.persistence.PessimisticLockException
public class PessimisticLockException
Pessimistic concurrency violation. This exception is always fatal in contrast to LockTimeoutException.
| Field Summary |
|---|
| Fields inherited from interface org.apache.openjpa.util.ExceptionInfo |
|---|
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED |
| Constructor Summary | |
|---|---|
PessimisticLockException(java.lang.String msg,
java.lang.Throwable[] nested,
java.lang.Object failed)
|
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getCause()
Returns the first Throwable from ExceptionInfo.getNestedThrowables()
in order to conform to Throwable.getCause() in Java 1.4+. |
java.lang.Object |
getFailedObject()
The failed object. |
java.lang.Throwable[] |
getNestedThrowables()
The nested throwables. |
int |
getSubtype()
Exception subtype. |
int |
getType()
Exception type. |
boolean |
isFatal()
Whether this error is fatal. |
void |
printStackTrace()
Stack. |
void |
printStackTrace(java.io.PrintStream out)
|
void |
printStackTrace(java.io.PrintWriter out)
|
java.lang.String |
toString()
|
| Methods inherited from class javax.persistence.PessimisticLockException |
|---|
getEntity |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, 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 |
| Constructor Detail |
|---|
public PessimisticLockException(java.lang.String msg,
java.lang.Throwable[] nested,
java.lang.Object failed)
| Method Detail |
|---|
public int getType()
ExceptionInfo
getType in interface ExceptionInfopublic int getSubtype()
ExceptionInfo
getSubtype in interface ExceptionInfopublic boolean isFatal()
ExceptionInfo
isFatal in interface ExceptionInfopublic java.lang.Throwable getCause()
ExceptionInfoThrowable from ExceptionInfo.getNestedThrowables()
in order to conform to Throwable.getCause() in Java 1.4+.
getCause in interface ExceptionInfogetCause in class java.lang.ThrowableThrowable.getCause()public java.lang.Throwable[] getNestedThrowables()
ExceptionInfo
getNestedThrowables in interface ExceptionInfopublic java.lang.Object getFailedObject()
ExceptionInfo
getFailedObject in interface ExceptionInfopublic java.lang.String toString()
toString in class java.lang.Throwablepublic void printStackTrace()
ExceptionInfo
printStackTrace in interface ExceptionInfoprintStackTrace in class java.lang.ThrowableThrowable.printStackTrace()public void printStackTrace(java.io.PrintStream out)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter out)
printStackTrace in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||