|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.apache.openjpa.util.OpenJPAException
public abstract class OpenJPAException
Exception type for all OpenJPA exceptions. Meant to be easily transformed into an appropriate exception at the API layer, since most APIs define their own exception types.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo |
---|
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
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 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)
Method Detail |
---|
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 String toString()
toString
in class Throwable
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |