An on-error action defines a named rule that enables user-defined error handling when
subsequent processing encounters errors. This topic instructs how to define an on-error
action.
The on-error action either stops processing or continues to the next processing step.
Optionally, the action calls the named rule to handle the error condition. Without an on-error
action, the default error handling is to stop processing and log a message.
A processing rule can contain one or more on-error actions. Each action defines error
handling for subsequent actions until another on-error action is found. When another action is
found, error-handling procedures are set to the new on-error action. As such, this action
enables conditional error handling in a processing context.
Note: A processing policy can contain on-error actions and an error rule. When a
processing policy contains both on-error actions and an error rule, the on-error action overrides
the error rule. An error rule, if the processing policy contains one, is invoked when an error
occurs during processing. In this case, the error rule acts as an error handler.