LeighRiffel
Programmer
I am writing an Oracle package to be used as an interface to several related tables. I am attempting to design the package such that if a particular procedure or set of procedures are called that have expected, non-fatal errors, that all the errors are returned and not just the first one encountered.
My current plan is to create a global temporary errors table and whenever an expected error is encountered insert the error into the error table and continue processing. My primary problem with this is that the calling application has to make sure an exception wasn't returned for an unexpected error and then also has to check the errors table (using a function or procedure) for expected errors.
I am looking for ideas on ways to make this design better either by improving my current plan or through an alternate way to accomplish the same goal.
My current plan is to create a global temporary errors table and whenever an expected error is encountered insert the error into the error table and continue processing. My primary problem with this is that the calling application has to make sure an exception wasn't returned for an unexpected error and then also has to check the errors table (using a function or procedure) for expected errors.
I am looking for ideas on ways to make this design better either by improving my current plan or through an alternate way to accomplish the same goal.