|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-02 |
||||||||
| 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
oracle.toplink.exceptions.TopLinkException
public abstract class TopLinkException
Purpose: Any exception raised by TopLink should be a subclass of this exception class.
| Method Summary | |
|---|---|
int |
getErrorCode()Return the exception error code. |
java.lang.Throwable |
getInternalException()Return the internal native exception. |
java.lang.String |
getMessage()Return the exception error message. |
oracle.toplink.internal.sessions.AbstractSession |
getSession()Return the session. |
void |
printStackTrace()Print both the normal and internal stack traces. |
void |
printStackTrace(java.io.PrintStream outStream)Print both the normal and internal stack traces. |
void |
printStackTrace(java.io.PrintWriter writer)Print both the normal and internal stack traces. |
static void |
setShouldPrintInternalException(boolean printException)Allows overiding of TopLink's exception chaining detection. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getErrorCode()
public java.lang.Throwable getInternalException()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic oracle.toplink.internal.sessions.AbstractSession getSession()
public void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream outStream)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter writer)
printStackTrace in class java.lang.Throwablepublic static void setShouldPrintInternalException(boolean printException)
booleam - printException - If printException is true, the TopLink-stored Internal exception will be included in a stack traceor in the exception message of a TopLinkException. If printException is false, the TopLink-stored Internal Exception will not be included in the stack trace or the exception message of TopLinkExceptions
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||