|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.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 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 String toString()
toString in class Throwablepublic void printStackTrace()
ExceptionInfo
printStackTrace in interface ExceptionInfoprintStackTrace in class ThrowableThrowable.printStackTrace()public void printStackTrace(PrintStream out)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter out)
printStackTrace in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||