PreviousNext

The fault_status Attribute

The fault_status attribute requests that errors occurring on the server due to incorrectly specified parameter values, resource constraints, or coding errors be reported by a designated status parameter instead of by an exception.

If a user-defined exception is returned from a server to a client that has specified fault_status on the operation in which the exception occurred, the value given to the fault_status parameter is rpc_s_fault_user_defined.

The fault_status attribute has the following characteristics:

· Occurs where you do not want transparent local/remote behavior

· Occurs where you expect that you may be passing incorrect data to the server or the server is not coded robustly, or both

· Works well for fine-grained error handling

· Requires that you adjust procedure declarations between local and distributed code

· Controls the reporting only of errors that come from the server and that are reported via a fault packet

For more information on the fault_status attribute, see Attribute Configuration Language.