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, setStackTrace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage
public 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 ExceptionInfo
public int getSubtype()
getSubtype
in interface ExceptionInfo
public boolean isFatal()
isFatal
in interface ExceptionInfo
public 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 ExceptionInfo
getCause
in class java.lang.Throwable
Throwable.getCause()
public OpenJPAException setCause(java.lang.Throwable nested)
public java.lang.Throwable[] getNestedThrowables()
getNestedThrowables
in interface ExceptionInfo
public OpenJPAException setNestedThrowables(java.lang.Throwable[] nested)
public java.lang.Object getFailedObject()
getFailedObject
in interface ExceptionInfo
public OpenJPAException setFailedObject(java.lang.Object failed)
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
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.