|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.persistence.PersistenceException org.apache.openjpa.persistence.PersistenceException
public class PersistenceException
General persistence exception.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo |
---|
GENERAL, INTERNAL, STORE, UNSUPPORTED, USER |
Constructor Summary | |
---|---|
PersistenceException(String msg,
Throwable[] nested,
Object failed,
boolean fatal)
|
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)
|
String |
toString()
|
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 PersistenceException(String msg, Throwable[] nested, Object failed, boolean fatal)
Method Detail |
---|
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 Throwable getCause()
ExceptionInfo
Throwable
from ExceptionInfo.getNestedThrowables()
in order to conform to Throwable.getCause()
in Java 1.4+.
getCause
in interface ExceptionInfo
Throwable.getCause()
public Throwable[] getNestedThrowables()
ExceptionInfo
getNestedThrowables
in interface ExceptionInfo
public Object getFailedObject()
ExceptionInfo
getFailedObject
in interface ExceptionInfo
public String toString()
public void printStackTrace()
ExceptionInfo
printStackTrace
in interface ExceptionInfo
Throwable.printStackTrace()
public void printStackTrace(PrintStream out)
public void printStackTrace(PrintWriter out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |