Exception handling in WCF using SOAP Fault - DotNetLogix

added by dotnetlogix
8/3/2011 6:10:25 PM

167 Views

Exception handling in WCF using SOAP Fault


3 comments

dpeterson
8/3/2011 6:17:21 PM
What is the advantage to using a FaultException? Does the WCF runtime not have any mechanism in place to notify the client should a normal exception occur?
It seems odd that you would have to wrap all exceptions in FaultExceptions, losing the stack-trace and other important bits of information available in the exception object.

vijayst
8/5/2011 11:38:09 AM
My understanding is that FaultException will have an InnerException property that will expose the actual exception that occurred within a service.

vijayst
8/5/2011 11:35:46 AM
I am not clear about FaultCode. You have used FaultCode as "sender". Is it just a application specific classification of the fault? Or is it some kind of identifier that is assigned?