|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.webui.dhtml.IlxWControllerError
public class IlxWControllerError
Controller errors.
A controller error is passed to the method
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.
Field Summary | |
---|---|
static int |
ERROR_COMPONENTEXCEPTION
|
static int |
ERROR_IOEXCEPTION
|
static int |
ERROR_OTHER
|
static int |
ERROR_SESSIONTIMEOUT
|
Method Summary | |
---|---|
String |
getMessage()
Gets the message associated with this error. |
Throwable |
getRootCause()
Returns the error that caused this controller error. |
int |
getType()
Gets the type of the error. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ERROR_SESSIONTIMEOUT
public static final int ERROR_IOEXCEPTION
public static final int ERROR_COMPONENTEXCEPTION
public static final int ERROR_OTHER
Method Detail |
---|
public String getMessage()
public int getType()
public Throwable getRootCause()
Throwable
that caused this controller error.
May be null
.
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |