示例#1
0
    /// <summary>
    /// Creates a given 
    /// </summary>
    /// <param name="exception"></param>
    /// <returns></returns>
    public static VfsFault CreateFromException(VfsException exception)
    {
      VfsFaultException fe = exception as VfsFaultException;
      if (fe != null) return fe.Fault;

      return new VfsFault
                    {
                      FaultType = exception.FaultType,
                      Message = exception.Message,
                      EventId = exception.EventId
                    };
    }
示例#2
0
        /// <summary>
        /// Creates a given
        /// </summary>
        /// <param name="exception"></param>
        /// <returns></returns>
        public static VfsFault CreateFromException(VfsException exception)
        {
            VfsFaultException fe = exception as VfsFaultException;

            if (fe != null)
            {
                return(fe.Fault);
            }

            return(new VfsFault
            {
                FaultType = exception.FaultType,
                Message = exception.Message,
                EventId = exception.EventId
            });
        }