Exception Values

This section describes the exceptions that are generated by Silk Test Classic under specific error conditions.

Exception value Description
E_ABORT
Script aborted by user.
E_APP_NOT_READY
The application is not ready.
E_APP_NOT_RESPONDING
The application is not responding to input.
E_APPID_INVALID
The specified application ID is not a valid application.
E_BITMAP_NOT_STABLE
The bitmap timeout period set with
OPT_BITMAP_MATCH_TIMEOUT
was reached before the image stabilized.
E_BITMAP_REGION_INVALID
The specified region was off the screen.
E_BITMAPS_DIFFERENT
The comparison failed when comparing two bitmaps.
E_CANT_CLEAR_SELECTION
The selection cannot be cleared.
E_CANT_CLOSE_WINDOW
The window cannot be closed (often resulting when a confirmation dialog box pops up).
E_CANT_COMPARE_BITMAP
Silk Test Classic ran out of a system resource (such as memory) needed to compare the bitmaps.
E_CANT_CONVERT_RESOURCE
The specified resource cannot be handled by GetResource, although it is a valid resource for the widget.
E_CANT_EXIT_APP
Silk Test Classic was unable to close the application.
E_CANT_EXTEND_SELECTION
The list box selection can not be extended because nothing is selected.
E_CANT_MAXIMIZE_WINDOW
The window can not be maximized.
E_CANT_MINIMIZE_WINDOW
The window can not be minimized.
E_CANT_MOVE_WINDOW
The window can not be moved.
E_CANT_RESTORE_WINDOW
The window size can not be restored.
E_CANT_SET_ACTIVE
The window can not be set active.
E_CANT_SET_FOCUS
The window can not be given the input focus.
E_CANT_SIZE_WINDOW
The window can not be resized.
E_CANT_START_APP
The application cannot be started.
E_COL_COUNT_INVALID
The specified value is not a valid character count.
E_COL_NUM_INVALID
The specified value is not a valid character position.
E_COL_START_EXCEEDS_END
The starting character exceeds the end character position.
E_COLUMN_INDEX_INVALID
The specified index is not a valid column index. All DataGrid methods that use DataGridCell, DataGridRow, or DataGridCol as a parameter may see this exception raised.
E_COLUMN_NAME_INVALID
The specified index is not a valid column index. All DataGrid methods that use DataGridCell, DataGridRow, or DataGridCol as a parameter may see this exception raised.
E_CONTROL_NOT_RESPONDING
The control is not responding. Raised after checking whether a specified action took place.
E_COORD_OFF_SCREEN
The specified mouse coordinate is off the screen.
E_COORD_OUTSIDE_WINDOW
The specified coordinate is outside the window. This exception is never raised if the OPT_VERIFY_COORD option is set to FALSE.
E_CURSOR_TIMEOUT
The cursor timeout period was reached before the correct cursor appeared.
E_DELAY_INVALID
The specified delay is not valid.
E_FUNCTION_NOT_REGISTERED
The function called is a user-defined function that hasn't been registered by the application.
E_GRID_HAS_NO_COL_HDR
The specified DataGrid has no column header. All DataGrid methods that use DataGridCell, DataGridRow, or DataGridCol as a parameter may see this exception raised.
E_GUIFUNC_ID_INVALID
The specified function is not a valid function.
E_INTERNAL
Internal Silk Test Classic error.
E_INVALID_REQUEST
Invalid argument count or argument, or wrong number of arguments.
E_ITEM_INDEX_INVALID
The specified index is not a valid item index.
E_ITEM_NOT_FOUND
The specified item was not found.
E_ITEM_NOT_VISIBLE
The specified item is not visible.
E_KEY_COUNT_INVALID
The repeat count used in the key specification is not a valid number.
E_KEY_NAME_INVALID
The specified key name is not valid.
E_KEY_SYNTAX_ERROR
The syntax used in the key specification is not valid.
E_LINE_COUNT_INVALID
The specified line count is not valid.
E_LINE_NUM_INVALID
The specified line number is not valid.
E_LINE_START_EXCEEDS_END
The specified start line exceeds the end line number.
E_MOUSE_BUTTON_INVALID
The specified mouse button is not valid
E_NO_ACTIVE_WINDOW
No window is active.
E_NO_COLUMN
GuptaTable exception.
E_NO_DEFAULT_PUSHBUTTON
The dialog box does not have a default button.
E_NO_FOCUS_WINDOW
No window has the input focus.
E_NO_SETFOCUS_CELL
GuptaTable exception.
E_NO_SETFOCUS_COLUMN
GuptaTable exception.
E_NO_SETTEXT_CELL
GuptaTable exception.
E_NOFOCUS_CELL
No cell in the Gupta table has input focus.
E_NOFOCUS_COLUMN
No column in the Gupta table has input focus.
E_NOFOCUS_ROW
No row in the Gupta table has input focus.
E_NOT_A_TABLEWINDOW
The specified window is not a Gupta table.
E_OPTION_CLASS_MAP_INVALID
The mapping specified with the OPT_CLASS_MAP option is not valid.
E_OPTION_EVTSTR_LENGTH
The length of the event string given in OPT_MENU_INVOKE_POPUP was too long.
E_OPTION_NAME_INVALID
The specified agent option does not exist.
E_OPTION_TOO_MANY_TAGS
The maximum number of tags was exceeded when specifying buttons and menu items using one or more of these options:
  • OPT_CLOSE_CONFIRM_BUTTONS
  • OPT_CLOSE_WINDOW_BUTTONS
  • OPT_CLOSE_WINDOW_MENUS
E_OPTION_TYPE_MISMATCH
Mismatch between type of agent option and type of specified value.
E_OPTION_VALUE_INVALID
The specified agent option is not valid.
E_OUT_OF_MEMORY
The system has run out of memory.
E_POS_INVALID
The specified position is not valid.
E_POS_NOT_REACHABLE
The specified position cannot be reached. It is out of range of the object.
E_RESOURCE_NOT_FOUND
The widget does not contain the specified resource.
E_ROW_INDEX_INVALID
The specified index is not a valid row index. All DataGrid methods that use DataGridCell, DataGridRow, or DataGridCol as a parameter may see this exception raised.
E_SBAR_HAS_NO_THUMB
The scroll bar thumb can not be clicked to scroll a page because the scroll bar does not have a thumb.
E_SQLW_BAD_COLUMN_NAME
A bad column name was specified for the Gupta table.
E_SQLW_BAD_COLUMN_NUMBER
A bad column number was specified for the Gupta table.
E_SQLW_BAD_ROW_NUMBER
A bad row number was specified for the Gupta table.
E_SQLW_CANT_ENTER_TEXT
GuptaTable exception.
E_SQLW_INCORRECT_LIST
GuptaTable exception.
E_SQLW_NO_EDIT_WINDOW
GuptaTable exception.
E_SQLW_TABLE_WINDOW_HIDDEN
GuptaTable exception.
E_SQLW_TOO_BIG_LIST
GuptaTable exception.
E_SYSTEM
A system operation has failed.
E_TAG_SYNTAX_ERROR
The tag syntax is not valid: invalid coordinate or index, multiple indices specified, the window part is not the last part of the tag, or the tilde (~) is not followed by a child window.
E_TIMER
The specified timer operation is redundant. For example, a pause operation specified for a stopped timer.
E_TRAP_NOT_SET
Attempted to clear a trap that was not set.
E_UNSUPPORTED
The specified method is not supported on the current platform.
E_VAR_EXPECTED
A function or method call has not passed a variable for a required parameter or an expression failed to specify a variable required by an operator.
E_VERIFY
User-specified verification failed.
E_WINDOW_INDEX_INVALID
The tag uses an invalid index number.
E_WINDOW_NOT_ACTIVE
The specified window is not active.
E_WINDOW_NOT_ENABLED
The specified window is not enabled.
E_WINDOW_NOT_EXPOSED
The specified window is not exposed.
E_WINDOW_NOT_FOUND
The specified window is not found. Raised by any method that operates on a window, except Exists.
E_WINDOW_NOT_UNIQUE

The specified identifier does not represent a unique window. Raised by any method that operates on a window. Affected by the value set with the OPT_VERIFY_UNIQUE option.

If you receive this exception, you might try using a slightly modified tag syntax to refer to a window with a non-unique tag. You can either include an index number after the object, as in Dbox ("Cancel[2]"), or you can specify the window by including the text of a child that uniquely identifies the window, such as Dbox/uniqueText/..., where the unique text is the tag of a child of that window.

E_WINDOW_SIZE_INVALID
The window size is too big for the screen or it is negative.
E_WINDOW_TYPE_MISMATCH
The specified window is not valid for this method. Raised when the type of window used is not the type the method accepts.