During a remote procedure call, server and communications errors may occur. These errors can be handled using any or all of the following methods:
· Writing exception handler code to recover from the error or to exit the application
· Using the fault_status attribute in the ACF to report an RPC server failure
· Using the comm_status attribute in the ACF to report a communications failure
Use of exceptions, where the procedure exits the program due to an error, tends to improve code quality. It does this by making errors obvious because the program exits at that point, and by lessening the amount of code needed to detect error conditions and handle them. When you use the fault_status attribute, an exception that occurs on the server is not reported to the client as an exception. The variable to which the comm_status attribute is attached contains error codes that report errors that would not have occurred if the application were not distributed over a communications network. The comm_status attribute provides a method of handling RPC errors without using an exception handler.
More:
Determining Which Method to Use for Handling Exceptions