更新时间:2023-02-15 12:52:05
或者你可以使用内置的,出的现成的解决方案:的异常过滤器。
Or you could use the built-in, out-of-the-box solution: exception filters.
此外,您可能会感兴趣的exception处理来自网络API 2.X 开始。
Furthermore, you may be interested on exception handling starting from Web API 2.x.