更新时间:2023-02-16 09:08:51
第二似乎更好,因为它不涉及其是在一个微成本相比于第一实施例的异常投掷。
The second seems better as it doesn't involve exception throwing which comes at a micro-cost compared to the first example.
ASP.NET MVC 4,抛出HttpException VS回报的HTTPStatus codeResult?