try {
if (isFileDownloaded)
// do stuff
else
throw new CustomException()
}
catch (Exception e)
{
// something went wrong to save the error to log
}
finally
{
//release resources
}
我的问题是在 try 块中抛出的catch
捕获?ApplicationException
它的编码风格很差吗?
是不是应该换成别的写法?