perf : 异常处理替换为YOO的异常类
This commit is contained in:
@@ -76,7 +76,7 @@ namespace YooAsset
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(_fileName))
|
||||
throw new Exception("Should never get here !");
|
||||
throw new YooInternalException("File name can not be null or empty.");
|
||||
return _fileName;
|
||||
}
|
||||
}
|
||||
@@ -90,7 +90,7 @@ namespace YooAsset
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(_fileExtension))
|
||||
throw new Exception("Should never get here !");
|
||||
throw new YooInternalException("File extension can not be null or empty.");
|
||||
return _fileExtension;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user