public class IlxWControllerError
extends java.lang.Object
IlxWController.handleError(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, ilog.webui.dhtml.IlxWControllerError, java.lang.String) when an error is encountered
during execution of the method IlxWController.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).
There are four types of controller errors (see getType()):
ERROR_SESSIONTIMEOUT: triggered by the service method of
the controller servlet if the last session has expired. This will typically
happen if a user tries to perform an action on a web component displayed in
an HTML page and if the HTTP session that was used to generate the page has
expired.
In this case, the getRootCause() method returns null.ERROR_IOEXCEPTION: if an IOException
occurs while printing data
to the response output stream. In this case, the method getRootCause()
returns the corresponding java.io.IOException instance.ERROR_COMPONENTEXCEPTION: if an
IlxWRuntimeException occurs
because of a bad manipulation of a web component.
In this case, the method getRootCause() returns the corresponding
ilog.webui.dhtml.IlxWRuntimeException instance.ERROR_OTHER: for any other types of throwable error.
For instance, trying to add a component in two different containers (see
IlxWContainer.add(ilog.webui.dhtml.IlxWComponent)) may produce a
java.lang.IllegalStateException instance.
In this case, the method getRootCause() returns the corresponding
java.lang.Exception instance.| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_COMPONENTEXCEPTION |
static int |
ERROR_IOEXCEPTION |
static int |
ERROR_OTHER |
static int |
ERROR_SESSIONTIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage()
Gets the message associated with this error.
|
java.lang.Throwable |
getRootCause()
Returns the error that caused this controller error.
|
int |
getType()
Gets the type of the error.
|
public static final int ERROR_SESSIONTIMEOUT
public static final int ERROR_IOEXCEPTION
public static final int ERROR_COMPONENTEXCEPTION
public static final int ERROR_OTHER
public java.lang.String getMessage()
public int getType()
public java.lang.Throwable getRootCause()
Throwable that caused this controller error.
May be null.© Copyright IBM Corp. 1987, 2017