|
Vern,
I differ. I at least make a token effort to determine what the error is
or trap more common errors. Like
monitor;
MyNbr=%dec(MyChar);
on-error InvalidNumeric;
InvalidNumeric(); // execute the invalid numeric subprocedure
on-error;
// catch all
AlertTheTroops();
endMon;
While you may think that the only possible error would be an invalid
numeric, you may decide to handle truncation, etc different. Things
change, like a new vendor package may change field sizes.
Also, OS changes occur. Like all those people who assumed that all write
errors were because of a duplicate record and then simply did a chain and
update to remedy it. Now they get errors like referential constraint
error, or trigger error, or ...
Notice the
on-error InvalidNumeric
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.