Page History
What Return Codes Are Used in TRIG_RETC and How Can They Be Set?
Whenever a trigger function completes its completion status is subjected to 3 tests:
...
Leave the default values and let the standard error handling solve the problem. Use a "binary" approach to doing I/O operations - it either worked or it didn't work - and if it didn't work let the standard error handling solve the problem.
Coding your own I/O error traps in RDML functions is not recommended unless they are of a very specialized nature (e.g.: setting up work tables). Failing to observe this recommendation will lead to overly complex implementations that exhibit no real business benefit and cost significantly more to develop and maintain.
...
Note that the "VE" response is only possible for before insert, before update and before delete.
...