Once I became familiar with Java's stack trace information, I found that receiving the Lotus Notes error message: "Object Variable Not Set" no longer helped me properly trap and manage errors.
I've found a way to code a stack trace into LotusScript libraries and agents. The trick is that you must have an error trap in every sub, function or method to capture useful information. Then, the code will build the stack as each error trap is tripped.
Following is output from my example:
Error: method ExampleClass.setup() has not been implemented. at [Exampleclass.New( ): 11] at [getObject('abstract').Getexampleobject: 8] at [ExampleAgent.Initialize( ): 13]
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip library by member Rodney Rear. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes/Domino technical tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.