perf : 异常处理替换为YOO的异常类

This commit is contained in:
何冠峰
2025-12-05 15:45:04 +08:00
parent 5da8c6baf8
commit e5d0a856a5
27 changed files with 243 additions and 74 deletions
@@ -242,9 +242,9 @@ namespace YooAsset
{
return FileSHA1(filePath);
}
catch (Exception e)
catch (Exception ex)
{
YooLogger.Exception(e);
YooLogger.Exception(ex);
return string.Empty;
}
}
@@ -302,9 +302,9 @@ namespace YooAsset
{
return FileMD5(filePath);
}
catch (Exception e)
catch (Exception ex)
{
YooLogger.Exception(e);
YooLogger.Exception(ex);
return string.Empty;
}
}
@@ -372,9 +372,9 @@ namespace YooAsset
{
return FileCRC32(filePath);
}
catch (Exception e)
catch (Exception ex)
{
YooLogger.Exception(e);
YooLogger.Exception(ex);
return string.Empty;
}
}
@@ -384,9 +384,9 @@ namespace YooAsset
{
return FileCRC32Value(filePath);
}
catch (Exception e)
catch (Exception ex)
{
YooLogger.Exception(e);
YooLogger.Exception(ex);
return 0;
}
}