Problem solve Get help with specific problems with your technologies, process and projects.

Differences between a trap and an interrupt?

What are the differences between a trap and an interrupt? What is the use of each function?
This brings me back quite a way... Introduction to Computer Science (101). A trap is program logic that you would write to catch, or "trap", and error as it occurs. In the Notes world you would implement a trap with an "On Error" statement inside a LotusScript Agent. Search in Designer Help for "trap" to get all the specifics from the Lotus Notes perspective. An interrupt is an event within a program that suspends normal processing and temporarily diverts the flow of control to some other routine, which is typically refered to as an interrupt handler. The Notes client and Domino server software provides you with several interrupts when interacting with databases, view and documents. Any time you open or save a Notes document you have the option of interrupting the normal/simple save by calling some code such as QueryOpen and QuerySave. You can think of the code you write inside a Form's QueryOpen and QuerySave as an interrupt handler.

Dig Deeper on Domino Resources - Part 3



  • 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 ...