|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
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
ch.elexis.core.PersistenceException
public class PersistenceException
Runtime Exception containing a status object describing the cause of the exception.
This class can be used without OSGi running.
IStatus
,
Serialized FormConstructor Summary | |
---|---|
PersistenceException(IStatus status)
Creates a new exception with the given status object. |
|
PersistenceException(java.lang.String message)
|
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Returns the cause of this exception, or null if none. |
IStatus |
getStatus()
Returns the status object for this exception. |
static void |
printChildren(IStatus status,
java.io.PrintStream output)
|
static void |
printChildren(IStatus status,
java.io.PrintWriter output)
|
void |
printStackTrace()
Prints a stack trace out for the exception, and any nested exception that it may have embedded in its Status object. |
void |
printStackTrace(java.io.PrintStream output)
Prints a stack trace out for the exception, and any nested exception that it may have embedded in its Status object. |
void |
printStackTrace(java.io.PrintWriter output)
Prints a stack trace out for the exception, and any nested exception that it may have embedded in its Status object. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PersistenceException(java.lang.String message)
public PersistenceException(IStatus status)
status
- the status object to be associated with this exceptionMethod Detail |
---|
public java.lang.Throwable getCause()
null
if none.
getCause
in class java.lang.Throwable
public final IStatus getStatus()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream output)
printStackTrace
in class java.lang.Throwable
output
- the stream to write topublic void printStackTrace(java.io.PrintWriter output)
printStackTrace
in class java.lang.Throwable
output
- the stream to write topublic static void printChildren(IStatus status, java.io.PrintStream output)
public static void printChildren(IStatus status, java.io.PrintWriter output)
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |