How to handle unknown faults in a service

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

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");

Last edited May 8, 2008 at 4:41 AM by prashantbansode, version 1

Comments

No comments yet.