Errors

The flow of execution may also be changed at run time by the occurrence of an error. Either execution ends, or an On Error statement in the script specifies how to respond to the error, in one of these ways:

  • By continuing execution with the statement following the statement that caused the error
  • By invoking an error handling routine in the current procedure
  • By seeking an error handling routine in a procedure within the chain of procedure calls that invoked the current procedure

An error handling routine ends with a Resume statement that directs LotusScript® to resume execution either at a designated labeled statement, or at the statement that caused the error, or at the statement following the statement that caused the error.