|
||||||||||
| 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.RollbackException
org.apache.openjpa.persistence.RollbackException
public class RollbackException
Rollback occurred on attempt to commit.
| Field Summary |
|---|
| Fields inherited from interface org.apache.openjpa.util.ExceptionInfo |
|---|
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED |
| Constructor Summary | |
|---|---|
RollbackException(Exception e)
|
|
| Method Summary | |
|---|---|
Throwable |
getCause()
Returns the first Throwable from ExceptionInfo.getNestedThrowables()
in order to conform to Throwable.getCause() in Java 1.4+. |
Object |
getFailedObject()
The failed object. |
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(PrintStream out)
|
void |
printStackTrace(PrintWriter out)
|
RollbackException |
setFailedObject(Object failed)
|
String |
toString()
|
| 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 RollbackException(Exception e)
| Method Detail |
|---|
public int getType()
ExceptionInfo
getType in interface ExceptionInfopublic int getSubtype()
ExceptionInfo
getSubtype in interface ExceptionInfopublic boolean isFatal()
ExceptionInfo
isFatal in interface ExceptionInfopublic Throwable getCause()
ExceptionInfoThrowable from ExceptionInfo.getNestedThrowables()
in order to conform to Throwable.getCause() in Java 1.4+.
getCause in interface ExceptionInfogetCause in class ThrowableThrowable.getCause()public Throwable[] getNestedThrowables()
ExceptionInfo
getNestedThrowables in interface ExceptionInfopublic Object getFailedObject()
ExceptionInfo
getFailedObject in interface ExceptionInfopublic RollbackException setFailedObject(Object failed)
public String toString()
toString in class Throwablepublic void printStackTrace()
ExceptionInfo
printStackTrace in interface ExceptionInfoprintStackTrace in class ThrowableThrowable.printStackTrace()public void printStackTrace(PrintStream out)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter out)
printStackTrace in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||