private MessageFault BuildFault(Exception error)
        {
            ServiceExceptionDetail exceptionDetail = new ServiceExceptionDetail(error);

            return(MessageFault.CreateFault(FaultCode.CreateReceiverFaultCode(ServiceExceptionDetail.FaultSubCodeName, ServiceExceptionDetail.FaultSubCodeNamespace),
                                            new FaultReason(error.Message), exceptionDetail));
        }
Example #2
0
 public ServiceExceptionDetail(Exception exception) : base(exception)
 {
     this.AssemblyQualifiedName = exception.GetType().AssemblyQualifiedName;
     if (null != exception.InnerException)
     {
         InnerException = new ServiceExceptionDetail(exception.InnerException);
     }
 }