User Tools

Site Tools


dictionary:errors:index

This is an old revision of the document!


Script Error Handling

If an unhandled error occurs in a script of any kind it will cause a global script named the Interface Error Script to be executed. Depending on where the error is coming from the ThisUnit, ThisScript or ThisInterface globals may also be set to indicate in what script or unit script or interface script the error occurred. The fact that all script errors are passed to a script that previously was run only for an interface error may be slightly confusing but is preserved for historical reasons so as to not break existing users script error handling.

Other things may also cause the Interface Error Script to execute such as an interface being reset due to it becoming unresponsive. For modern error handling not related to scripts most interfaces offer an on error handler that will be called with more information in the individual script. Use the “Insert” toolbar item of the Interface script to insert the handler with information on it’s use.

Inside the Interface Error Script you can use the Last Error, Last Error Message, and Last Error Date verbs to get the error message and exact time for logging or alerts as needed.

dictionary/errors/index.1590066926.txt.gz · Last modified: 2023/02/13 14:51 (external edit)