Esempio n. 1
0
        private MessageFault BuildFault(Exception error)
        {
            ServiceExceptionDetail exceptionDetail = new ServiceExceptionDetail(error);

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