We are in the process of moving a number of processes out of our Delphi application and into Oracle stored procedures and packages. For this move, I'm supposed to put together a white paper containing recommendations for error handling and thought I'd come here and see what others are doing with this subject.
I've got three techniques that we've discussed:
1. An ErrMsg string that gets passed into and out of all procedures and functions so that if there's an error it can be passed back to the calling application.
2. An Event Log. This would be a place where we could put both exceptions and process completion messages. I've got code for a separate procedure using "Pragma AUTONOMOUS_TRANSACTION" that will allow a commit outside of the transaction within the main processing transaction. This way we could add a record and commit it without affecting the transaction handling in the calling procedure.
3. For major errors, send an email to the system operators notifying them of the problem.
I've found ways of implementing all three of these fairly easily, but I'd like to know if there are other types of things that are being done that might be helpful.
Thanks!!
-Dell
I've got three techniques that we've discussed:
1. An ErrMsg string that gets passed into and out of all procedures and functions so that if there's an error it can be passed back to the calling application.
2. An Event Log. This would be a place where we could put both exceptions and process completion messages. I've got code for a separate procedure using "Pragma AUTONOMOUS_TRANSACTION" that will allow a commit outside of the transaction within the main processing transaction. This way we could add a record and commit it without affecting the transaction handling in the calling procedure.
3. For major errors, send an email to the system operators notifying them of the problem.
I've found ways of implementing all three of these fairly easily, but I'd like to know if there are other types of things that are being done that might be helpful.
Thanks!!
-Dell