[U2][UV]Error Handling
Is there a way to override error handling in Universe to do something other than display a message and halt program execution? What I would like is to have Universe send some sort of notification when an error occurs. Nick Cipollina Pick Programmer ACS - Heritage Information Systems, Inc. 2810 North Parham Road, Suite 210 Richmond, VA 23294 (804)644-8707 x 314 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2][UV]Error Handling
You can put an entry named "ON.ABORT" in the VOC and it will run it when a program aborts. HTH -- Rod Hills -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Cipollina Sent: Friday, July 22, 2005 12:55 PM To: u2-users@listserver.u2ug.org Subject: [U2][UV]Error Handling Is there a way to override error handling in Universe to do something other than display a message and halt program execution? What I would like is to have Universe send some sort of notification when an error occurs. Nick Cipollina Pick Programmer ACS - Heritage Information Systems, Inc. 2810 North Parham Road, Suite 210 Richmond, VA 23294 (804)644-8707 x 314 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2][UV]Error Handling
> Is there a way to override error handling in Universe to do > something other than display a message and halt program > execution? What I would like is to have Universe send some > sort of notification when an error occurs. Not exactly, but here are a few ideas: 1. Errors (fatal & not) are recorded in $UVHOME/errlog. It's size is limited but configurable by uvconfig's MAXERRLOGENT. I have a phantom that continually polls this text file and populates my own structured hashed file & generate reports emailed to me and others. 2. There is ON.ABORT paragraph available to you to handle fatal errors. I trap them and populate another file & send emails. 3. On case by case basis, WRITE & other basic statements likely to be implicated in errors allow for ON ERROR clauses. Search for ON ERROR in the documentation pdf. I have a utility purpose subroutine that I stick in places like these ON ERROR clauses. The subroutine allows a text argument to be sent from the calling program & it also captures SYSTEM(9001) call stack info, then writes all that to a file, which is monitored. So far I haven't implemented an email from the subroutine, but probably should. cds --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2][UV]Error Handling
Is there a way to capture the specifics of the error using ON.ABORT? Thanks, Nick Cipollina -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stevenson, Charles Sent: Friday, July 22, 2005 5:02 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2][UV]Error Handling > Is there a way to override error handling in Universe to do > something other than display a message and halt program > execution? What I would like is to have Universe send some > sort of notification when an error occurs. Not exactly, but here are a few ideas: 1. Errors (fatal & not) are recorded in $UVHOME/errlog. It's size is limited but configurable by uvconfig's MAXERRLOGENT. I have a phantom that continually polls this text file and populates my own structured hashed file & generate reports emailed to me and others. 2. There is ON.ABORT paragraph available to you to handle fatal errors. I trap them and populate another file & send emails. 3. On case by case basis, WRITE & other basic statements likely to be implicated in errors allow for ON ERROR clauses. Search for ON ERROR in the documentation pdf. I have a utility purpose subroutine that I stick in places like these ON ERROR clauses. The subroutine allows a text argument to be sent from the calling program & it also captures SYSTEM(9001) call stack info, then writes all that to a file, which is monitored. So far I haven't implemented an email from the subroutine, but probably should. cds --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2][UV]Error Handling
A lot of specifics seem to be lost & flushed by that time. SYSTEM(9001) is useless. It's frustrating. cds > From: Nick Cipollina > Is there a way to capture the specifics of the error using ON.ABORT? > > > Is there a way to override error handling in Universe to do something > > other than display a message and halt program execution? What I would > > like is to have Universe send some sort of notification when an error > > occurs. > > Not exactly, but here are a few ideas: > > 2. There is ON.ABORT paragraph available to you to handle > fatal errors. > I trap them and populate another file & send emails. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/