|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wrq.vhi.script.api.ModelEventHandler formaterror.TestFormatError
public class TestFormatError
Format Error event example.
This example illustrates three different ways to respond to the
formatError
event.
Field Summary | |
---|---|
static int |
clientConnectedTimeout
Timeout in seconds for the clientConnected() event. |
static int |
clientDisconnectedTimeout
Timeout in seconds for the clientDisconnected() event. |
static java.lang.String |
description
|
private static int |
errOpnBadDestination
Navigation error: operation reached entity not defined as a destination. |
private static int |
errOpnUserErrorDestination
User-defined error message when operation reaches error entity. |
static int |
errorReportedTimeout
Timeout in seconds for the errorReported() event. |
static int |
executeLoginTimeout
Timeout in seconds for the executeLogin() event. |
static int |
executeLogoutTimeout
Timeout in seconds for the executeLogout() event. |
static int |
formatErrorTimeout
Timeout in seconds for the formatError() event. |
static int |
moveCursorBackwardTimeout
Timeout in seconds for the moveCursorBackward() event. |
static int |
moveCursorForwardTimeout
Timeout in seconds for the moveCursorForward() event. |
static int |
moveCursorTimeout
Timeout in seconds for the moveCursor() event. |
private static java.lang.String |
msgSrchFailed
Searching for an invalid last name generates this message. |
static int |
processStringTimeout
Timeout in seconds for the processString() event. |
static int |
unrecognizedScreenTimeout
Timeout in seconds for the unrecognizedScreen() event. |
Fields inherited from interface com.wrq.vhi.script.api.EventHandler |
---|
DEFAULT_TIMEOUT |
Constructor Summary | |
---|---|
TestFormatError()
|
Method Summary | |
---|---|
java.util.List |
formatError(com.wrq.vhi.script.api.FormatErrorEvent event)
Change error messages returned to a client. |
Methods inherited from class com.wrq.vhi.script.api.ModelEventHandler |
---|
clientConnected, clientDisconnected, errorReported, executeLogin, executeLogout, moveCursor, moveCursorBackward, moveCursorForward, processString, unrecognizedScreen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String description
private static final int errOpnUserErrorDestination
private static final int errOpnBadDestination
private static final java.lang.String msgSrchFailed
public static final int errorReportedTimeout
public static final int formatErrorTimeout
public static final int clientConnectedTimeout
public static final int clientDisconnectedTimeout
public static final int unrecognizedScreenTimeout
public static final int executeLoginTimeout
public static final int executeLogoutTimeout
public static final int moveCursorForwardTimeout
public static final int moveCursorBackwardTimeout
public static final int moveCursorTimeout
public static final int processStringTimeout
Constructor Detail |
---|
public TestFormatError()
Method Detail |
---|
public java.util.List formatError(com.wrq.vhi.script.api.FormatErrorEvent event) throws com.wrq.apptrieve.agent.ApptrieveException
This event handler will treat error messages it knows about, and report others as "unexpected".
formatError
in class com.wrq.vhi.script.api.ModelEventHandler
event
- the event instance
ErrorMessage
objects
com.wrq.apptrieve.agent.ApptrieveException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |