Sunday, August 10, 2008

Fault Management

Except for FaultException derived exceptions, any exception thrown by a service faults the client proxy, which can the only be closed. All service exceptions are rethrown on the client side as a FaultException.

Detailed FaultException<T> can be defined in a service contract, specifying the type through which the fault details will be provided. These exceptions are rethrown with their details on the client side

For debugging purposes, the IncludeExceptionDetailsInFaults service behavior can be applied to a service, in which case the FaultException<Exception> attribute is automatically provided for the service's operations.

No comments: