Пример #1
0
 /// <summary>
 /// 根据错误类型返回错误异常
 /// </summary>
 /// <param name="code"></param>
 /// <returns></returns>
 public static StorageError ToStorageError(this StorageErrorCode code) => new StorageError()
 {
     Code    = (int)code,
     Message = code.GetDisplayContent()
 };