Domino Code Fragment

Code Name*
Debug Web Agents with useful error messages
Date*
9/28/98
Source (or email address if you prefer)*
Jamie Magee
IP address:.18.189.14.219
Description*
Displays exact error and line number on browser for QSA and QOA
Type*
LotusScript
Categories*
Error Handling
Implementation:
None (plug and play)
Required Client:
Server:
Limitations:
Reacts to any error condition including GetDocumentByKey() not finding any matching documents.
Comments:
Files/Graphics attachments (if applicable): Code:

'...place at top of code
On Error Goto ErrHandle:
'...


'...place at end of code, but before End Sub
     Exit Sub
ErrHandle:
    Print "<BR><H1>Sorry, an error has occured.</H1><BR>"
    Print "<BR><BR><BR><font size=1>Error code:" & Err & " in agent at line number:" &Str$(Erl) & ": " & Error$