public abstract class OpenJPAException extends java.lang.RuntimeException implements java.io.Serializable, ExceptionInfo
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED| Constructor and Description |
|---|
OpenJPAException()
Default constructor.
|
OpenJPAException(Localizer.Message msg)
Constructor; supply message.
|
OpenJPAException(Localizer.Message msg,
java.lang.Throwable cause)
Construct with message and cause.
|
OpenJPAException(java.lang.String msg)
Constructor; supply message.
|
OpenJPAException(java.lang.String msg,
java.lang.Throwable cause)
Construct with message and cause.
|
OpenJPAException(java.lang.Throwable cause)
Construct with cause.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCause()
Returns the first
Throwable from 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.
|
abstract 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) |
OpenJPAException |
setCause(java.lang.Throwable nested)
The first nested throwable.
|
OpenJPAException |
setFailedObject(java.lang.Object failed)
The failed object.
|
OpenJPAException |
setFatal(boolean fatal)
Whether this error is fatal.
|
OpenJPAException |
setNestedThrowables(java.lang.Throwable[] nested)
The nested throwables.
|
java.lang.String |
toString() |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessagepublic OpenJPAException()
public OpenJPAException(java.lang.String msg)
public OpenJPAException(Localizer.Message msg)
public OpenJPAException(java.lang.Throwable cause)
public OpenJPAException(java.lang.String msg,
java.lang.Throwable cause)
public OpenJPAException(Localizer.Message msg, java.lang.Throwable cause)
public abstract int getType()
getType in interface ExceptionInfopublic int getSubtype()
getSubtype in interface ExceptionInfopublic boolean isFatal()
isFatal in interface ExceptionInfopublic OpenJPAException setFatal(boolean fatal)
public java.lang.Throwable getCause()
Throwable from getNestedThrowables()
in order to conform to Throwable.getCause() in Java 1.4+.getCause in interface ExceptionInfogetCause in class java.lang.ThrowableThrowable.getCause()public OpenJPAException setCause(java.lang.Throwable nested)
public java.lang.Throwable[] getNestedThrowables()
getNestedThrowables in interface ExceptionInfopublic OpenJPAException setNestedThrowables(java.lang.Throwable[] nested)
public java.lang.Object getFailedObject()
getFailedObject in interface ExceptionInfopublic OpenJPAException setFailedObject(java.lang.Object failed)
public java.lang.String toString()
toString in class java.lang.Throwablepublic void printStackTrace()
ExceptionInfoprintStackTrace 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.ThrowableCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.