Summary of Logging and Error Handling Processes
The following summarizes the functions and differences between the logging and error handling processes:
• Logging occurs in regular, predetermined places in the code whereas error handling is used only when a technical error occurs.
• Logging performs its function and always returns to the point where processing last occurred, even if it was called from within the error handler. Error handling might terminate the process or return to the point from which the error was generated.
• Error handling uses an embedded call to the logging process. The logging process does not use the error handling process unless there is an unanticipated error.
• Customizable handling codes determine error handling behavior; the error handler may log or send subtransaction or overall PostResult messages, and always determines whether the process should terminate.
• Logging writes process data to the log file for easy viewing and logging messages are highly customizable according to locale and system.