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, setStackTrace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage
public 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 ExceptionInfo
public int getSubtype()
getSubtype
in interface ExceptionInfo
public boolean isFatal()
isFatal
in interface ExceptionInfo
public OpenJPAException setFatal(boolean fatal)
public Throwable getCause()
Throwable
from getNestedThrowables()
in order to conform to Throwable.getCause()
in Java 1.4+.getCause
in interface ExceptionInfo
getCause
in class Throwable
Throwable.getCause()
public OpenJPAException setCause(Throwable nested)
public Throwable[] getNestedThrowables()
getNestedThrowables
in interface ExceptionInfo
public OpenJPAException setNestedThrowables(Throwable[] nested)
public Object getFailedObject()
getFailedObject
in interface ExceptionInfo
public OpenJPAException setFailedObject(Object failed)
public void printStackTrace()
ExceptionInfo
printStackTrace
in interface ExceptionInfo
printStackTrace
in class Throwable
Throwable.printStackTrace()
public void printStackTrace(PrintStream out)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter out)
printStackTrace
in class Throwable
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.