I'm trying to implement the IErrorhandler
which is proving to be a real pain!
I have imlpement the provideFault method from the IErrorhandler
interface like so...
public void ProvideFault(Exception error, MessageVersion version, ref Message fault)
{
FaultException<ServiceFault> faultException = ServiceMethods.BuildFaultException<ServiceFault>("Provide Fault Error", error.Message);
MessageFault messageFault = faultException.CreateMessageFault();
fault = Message.CreateMessage(version, messageFault, faultException.Action);
}
If my service operations hit an exception it drops into this method to create a FaultException
. My problem is the client doesnt get this FaultException
returned to them.
Am I missing something obvious here?
Thanks in advance