org.apache.openjpa.persistence
public class RollbackException extends javax.persistence.RollbackException implements java.io.Serializable, ExceptionInfo
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED
Constructor and Description |
---|
RollbackException(java.lang.Exception e) |
Modifier and Type | Method and Description |
---|---|
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) |
RollbackException |
setFailedObject(java.lang.Object failed) |
java.lang.String |
toString() |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage
public int getType()
ExceptionInfo
getType
in interface ExceptionInfo
public int getSubtype()
ExceptionInfo
getSubtype
in interface ExceptionInfo
public boolean isFatal()
ExceptionInfo
isFatal
in interface ExceptionInfo
public java.lang.Throwable getCause()
ExceptionInfo
Throwable
from ExceptionInfo.getNestedThrowables()
in order to conform to Throwable.getCause()
in Java 1.4+.getCause
in interface ExceptionInfo
getCause
in class java.lang.Throwable
Throwable.getCause()
public java.lang.Throwable[] getNestedThrowables()
ExceptionInfo
getNestedThrowables
in interface ExceptionInfo
public java.lang.Object getFailedObject()
ExceptionInfo
getFailedObject
in interface ExceptionInfo
public RollbackException setFailedObject(java.lang.Object failed)
public java.lang.String toString()
toString
in class java.lang.Throwable
public void printStackTrace()
ExceptionInfo
printStackTrace
in interface ExceptionInfo
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace()
public void printStackTrace(java.io.PrintStream out)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter out)
printStackTrace
in class java.lang.Throwable