Purpose: Any exception raised by EclipseLink should be a subclass of this exception class.
| Modifier and Type | Field and Description |
|---|---|
| protected static final String | |
| protected int | |
| protected boolean | |
| protected String | |
| protected Throwable | |
| protected transient AbstractSession | |
| protected static Boolean |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | EclipseLinkException(String theMessage)
INTERNAL: EclipseLink exception should only be thrown by EclipseLink. |
| protected | EclipseLinkException(String message, Throwable internalException)
INTERNAL: EclipseLink exception should only be thrown by EclipseLink. |
| Modifier and Type | Method and Description |
|---|---|
| protected static String | |
| public int | |
| public String | |
| public Throwable | |
| public String | |
| public AbstractSession | |
| public String | |
| public boolean | hasBeenLogged()
INTERNAL: Return if this exception has been logged to avoid being logged more than once. |
| public void | printStackTrace()
Overrides java. |
| public void | printStackTrace(PrintStream
PrintStream to use for outputOverrides java. |
| public void | printStackTrace(PrintWriter
PrintWriter to use for outputOverrides java. |
| public void | |
| public void | setHasBeenLogged(boolean logged)
INTERNAL: Set this flag to avoid logging an exception more than once. |
| public void | setIndentationString(String indentationString)
INTERNAL: Used to print things nicely in the testing tool. |
| public void | |
| public void | |
| public static void | setShouldPrintInternalException(boolean
- If printException is true, the EclipseLink-stored
Internal exception will be included in a stack trace or in the exception message of a EclipseLinkException.
If printException is false, the EclipseLink-stored Internal Exception will not be included
in the stack trace or the exception message of EclipseLinkExceptions printException)PUBLIC: Allows overriding of EclipseLink's exception chaining detection. |
| public static boolean | shouldPrintInternalException()
INTERNAL Check to see if the EclipseLink-stored internal exception should be printed in this a EclipseLinkException's stack trace. |
| public String |
| CR | back to summary |
|---|---|
| protected static final String CR | |
| errorCode | back to summary |
|---|---|
| protected int errorCode | |
| hasBeenLogged | back to summary |
|---|---|
| protected boolean hasBeenLogged | |
| indentationString | back to summary |
|---|---|
| protected String indentationString | |
| internalException | back to summary |
|---|---|
| protected Throwable internalException | |
| session | back to summary |
|---|---|
| protected transient AbstractSession session | |
| shouldPrintInternalException | back to summary |
|---|---|
| protected static Boolean shouldPrintInternalException | |
| EclipseLinkException | back to summary |
|---|---|
| protected EclipseLinkException() INTERNAL: Return a new exception. | |
| EclipseLinkException | back to summary |
|---|---|
| protected EclipseLinkException(String theMessage) INTERNAL: EclipseLink exception should only be thrown by EclipseLink. | |
| EclipseLinkException | back to summary |
|---|---|
| protected EclipseLinkException(String message, Throwable internalException) INTERNAL: EclipseLink exception should only be thrown by EclipseLink. | |
| cr | back to summary |
|---|---|
| protected static String cr() INTERNAL: Convenience method - return a platform-specific line-feed. | |
| getErrorCode | back to summary |
|---|---|
| public int getErrorCode() PUBLIC: Return the exception error code. | |
| getIndentationString | back to summary |
|---|---|
| public String getIndentationString() INTERNAL: Used to print things nicely in the testing tool. | |
| getInternalException | back to summary |
|---|---|
| public Throwable getInternalException() PUBLIC: Return the internal native exception. EclipseLink 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 | back to summary |
|---|---|
| public String getMessage() Overrides java. PUBLIC: Return the exception error message. EclipseLink error messages are multi-line so that detail descriptions of the exception are given.
| |
| getSession | back to summary |
|---|---|
| public AbstractSession getSession() PUBLIC: Return the session. | |
| getUnformattedMessage | back to summary |
|---|---|
| public String getUnformattedMessage() INTERNAL: | |
| hasBeenLogged | back to summary |
|---|---|
| public boolean hasBeenLogged() INTERNAL: Return if this exception has been logged to avoid being logged more than once. | |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace() Overrides java. PUBLIC: Print both the normal and internal stack traces.
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintStream outStream) Overrides java. PUBLIC: Print both the normal and internal stack traces.
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintWriter writer) Overrides java. PUBLIC: Print both the normal and internal stack traces.
| |
| setErrorCode | back to summary |
|---|---|
| public void setErrorCode(int errorCode) INTERNAL: | |
| setHasBeenLogged | back to summary |
|---|---|
| public void setHasBeenLogged(boolean logged) INTERNAL: Set this flag to avoid logging an exception more than once. | |
| setIndentationString | back to summary |
|---|---|
| public void setIndentationString(String indentationString) INTERNAL: Used to print things nicely in the testing tool. | |
| setInternalException | back to summary |
|---|---|
| public void setInternalException(Throwable exception) INTERNAL: Used to specify the internal exception. | |
| setSession | back to summary |
|---|---|
| public void setSession(AbstractSession session) INTERNAL: | |
| setShouldPrintInternalException | back to summary |
|---|---|
| public static void setShouldPrintInternalException(boolean printException) PUBLIC: Allows overriding of EclipseLink's exception chaining detection.
| |
| shouldPrintInternalException | back to summary |
|---|---|
| public static boolean shouldPrintInternalException() INTERNAL Check to see if the EclipseLink-stored internal exception should be printed in this a EclipseLinkException's stack trace. This method will check the static ShouldPrintInternalException variable and if it is not set, estimate based on the JDK version used. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. INTERNAL:
| |