org.apache.openjpa.persistence
public class TransactionRequiredException extends javax.persistence.TransactionRequiredException implements java.io.Serializable, ExceptionInfo
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED
Constructor and Description |
---|
TransactionRequiredException(Localizer.Message msg,
java.lang.Throwable[] nested,
java.lang.Object failed,
boolean fatal) |
TransactionRequiredException(java.lang.String msg,
java.lang.Throwable[] nested,
java.lang.Object failed,
boolean fatal) |
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) |
java.lang.String |
toString() |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage
public TransactionRequiredException(Localizer.Message msg, java.lang.Throwable[] nested, java.lang.Object failed, boolean fatal)
public TransactionRequiredException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed, boolean fatal)
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 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