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 first published in December 2001

Dig deeper on Domino Resources - Part 4

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchWinIT

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

SearchVirtualDataCentre.co.uk

Close