Error Handling Policy
The detection of an abnormal condition provides the user with the following options.
-
Retry; that is, attempt to change the conditions that led to the exception and retry the operation or fix the problem, and then continue execution from the point at which the error was detected. This approach is often applicable to database lock contention.
-
Termination; that is, clean up or return the environment to a stable state (abort transaction), report the failure with an error message, and then terminate execution. This is a more conservative, and generally safer, approach.
Regardless of which approach you take to abnormal error conditions, an operation can succeed or fail only in its entirety.