/// <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 }; }
/// <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 }); }