ajGetSystemError function
Description
The ajGetSystemError retrieves error records from the System Error List.
Syntax
ajGetSystemError([cell_reference], [function_name], [error_message])
Argument Name | Description |
---|---|
cell_reference (optional) | Specify the cell address to be filtered and shown from the system error list. If you do not specify anything, the default value will always be an empty string (“”) which means no filter condition. |
function_name (optional) | Specify the function name to be filtered and shown from the system error list. If you do not specify anything, the default value will always be an empty string (“”) which means no filter condition. |
error_message (optional) | Specify the partial or full string condition to be used to filter and shown from the system error list. Please take note that the string condition is case-insensitive. For example, records with an error message “ABCDE” will be shown with Error_message “b”. If you do not specify anything, the default value will always be an empty string (“”) which means no filter condition. |
The function will return:
1) Content type: Records from System Error List
2) Method: Cell array
Example
In this example, a wrong SQL statement (table "me" does not exist) is used in ajExecuteSql which generates a system error. The error is added to the System Error List. ajGetSystemError with no filter condition returns such an error from the list.