Error handler code for nasty LotusScript errors tip

Generic Error Handler code for use with another tip.

This tip contains Generic Error Handler code for use with Dovid Gross's tip Find those nasty LotusScript Web server errors.


Use the following variables for access to the current function and calling function:

 LSI_INFO(2) = Current function LSI_INFO(12) = Calling function

An example of the above is found below, but it can be integrated with Find those nasty LotusScript Web server errors to give easier code snippets, reducing coding errors such as spelling mistakes.

 function function1() on error goto genericerror call subfunction goto ExitCode GenericError: msgbox lsi_info(2) & " / " & lsi_info(12) & ":" & error$ & " at line " & erl() resume ExitCode ExitCode: end function function subfunction() on error goto genericerror ' raise an error error 1 goto ExitCode GenericError: msgbox lsi_info(2) & " / " & lsi_info(12) & ":" & error$ & " at line " & erl() resume ExitCode ExitCode: end function
This was last published in December 2001

Dig Deeper on Domino Resources - Part 4

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close