getErrorCode

public int getErrorCode()

Return the exception error code.

getInternalException

public java.lang.Throwable getInternalException()

Return the internal native exception.
TopLink frequently catches Java exceptions and wraps them in its own exception
classes to provide more information.
The internal exception can still be accessed if required.

getMessage

public java.lang.String getMessage()

Return the exception error message.
TopLink error messages are multi-line so that detail descriptions of the exception are given.

Overrides:

getMessage in class java.lang.Throwable

getSession

public oracle.toplink.internal.sessions.AbstractSession getSession()

Return the session.

printStackTrace

public void printStackTrace()

Print both the normal and internal stack traces.

Overrides:

printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream outStream)

Print both the normal and internal stack traces.

Overrides:

printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)

Print both the normal and internal stack traces.

Overrides:

printStackTrace in class java.lang.Throwable

setShouldPrintInternalException

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