public abstract class OpenJPAException extends RuntimeException implements 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,
Throwable cause)
Construct with message and cause.
|
OpenJPAException(String msg)
Constructor; supply message.
|
OpenJPAException(String msg,
Throwable cause)
Construct with message and cause.
|
OpenJPAException(Throwable cause)
Construct with cause.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Returns the first
Throwable from 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.
|
abstract int |
getType()
Exception type.
|
boolean |
isFatal()
Whether this error is fatal.
|
void |
printStackTrace()
Stack.
|
void |
printStackTrace(PrintStream out) |
void |
printStackTrace(PrintWriter out) |
OpenJPAException |
setCause(Throwable nested)
The first nested throwable.
|
OpenJPAException |
setFailedObject(Object failed)
The failed object.
|
OpenJPAException |
setFatal(boolean fatal)
Whether this error is fatal.
|
OpenJPAException |
setNestedThrowables(Throwable[] nested)
The nested throwables.
|
String |
toString() |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessagepublic OpenJPAException()
public OpenJPAException(String msg)
public OpenJPAException(Localizer.Message msg)
public OpenJPAException(Throwable cause)
public OpenJPAException(String msg, Throwable cause)
public OpenJPAException(Localizer.Message msg, 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 Throwable getCause()
Throwable from getNestedThrowables()
in order to conform to Throwable.getCause() in Java 1.4+.getCause in interface ExceptionInfogetCause in class ThrowableThrowable.getCause()public OpenJPAException setCause(Throwable nested)
public Throwable[] getNestedThrowables()
getNestedThrowables in interface ExceptionInfopublic OpenJPAException setNestedThrowables(Throwable[] nested)
public Object getFailedObject()
getFailedObject in interface ExceptionInfopublic OpenJPAException setFailedObject(Object failed)
public void printStackTrace()
ExceptionInfoprintStackTrace in interface ExceptionInfoprintStackTrace in class ThrowableThrowable.printStackTrace()public void printStackTrace(PrintStream out)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter out)
printStackTrace in class ThrowableCopyright © 2006–2022 Apache Software Foundation. All rights reserved.