为什么 SqlException 严重性 class 与规范所说的不同?
Why is SqlException severity class different from what the spec says it should be?
我正在查看我们服务的日志,发现有很多这样的异常:
System.Data.SqlClient.SqlException
Class 14
Number 40613
LineNumber 65536
Source .Net SqlClient Data Provider
Database 'OurDatabase' on server 'ourserver' is not currently available. Please retry the connection later. If the problem persists, contact customer support, and provide them the session tracing ID of 'GUID-IN-HERE'.
好的,我们应该重试...我打开我们的重试逻辑代码,很明显代码期望 Number 40613
严重性 class 设置为 17。Documentation 确认此错误消息应该将严重性 class 设置为 17。
为什么不同?这是 .NET Framework 中的错误还是什么?
感谢您提醒我们注意此事。您所看到的是由于 V12 上暴露的错误。对于错误 40613,系统应报告 Severity = 17(而不是 14)。我们将解决此问题。
如有任何问题,请与我联系。
我正在查看我们服务的日志,发现有很多这样的异常:
System.Data.SqlClient.SqlException
Class 14
Number 40613
LineNumber 65536
Source .Net SqlClient Data Provider
Database 'OurDatabase' on server 'ourserver' is not currently available. Please retry the connection later. If the problem persists, contact customer support, and provide them the session tracing ID of 'GUID-IN-HERE'.
好的,我们应该重试...我打开我们的重试逻辑代码,很明显代码期望 Number 40613
严重性 class 设置为 17。Documentation 确认此错误消息应该将严重性 class 设置为 17。
为什么不同?这是 .NET Framework 中的错误还是什么?
感谢您提醒我们注意此事。您所看到的是由于 V12 上暴露的错误。对于错误 40613,系统应报告 Severity = 17(而不是 14)。我们将解决此问题。
如有任何问题,请与我联系。