[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes",
Justification = "Swallow all the exception to avoid logFramework crash.")]
本文探讨了在软件开发过程中遇到的一般异常处理问题,并提出了一种特殊的异常处理策略:即通过捕获所有类型的异常来避免日志框架崩溃的情况。这种方法虽然简单直接,但可能会掩盖潜在的问题。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes",
Justification = "Swallow all the exception to avoid logFramework crash.")]
3959
7433
3118

被折叠的 条评论
为什么被折叠?