How to Handle Unknown Faults in A Service

- J.D. Meier, Carlos Farre, Jason Taylor, Prashant Bansode, Steve Gregersen, Madhu Sundararajan, Rob Boucher

To handle unknown faults in a service throw an instance of FaultException directly. Any FaultException<T> thrown by the service always reaches the client as a FaultException<T> or as FaultException. The FaultException<T> class is derived from the class FaultException.

throw new FaultException("Specify some reason");

Additional Resources

Last edited Jun 13, 2008 at 6:43 PM by prashantbansode, version 1

Comments

No comments yet.