处理Microsoft.WindowsAzure.Storage.StorageException
Azure Table Storage提出的问题时,无需查询theHTTPStatusCode
和the ,就可以确定错误是什么ErrorCode
。例如,当尝试插入重复的实体时,Azure会引发以下情况:
HTTPStatusCode:409
错误代码:“ EntityAlreadyExists”
是否可以枚举这些错误代码,而不是直接针对(int)HTTPStatusCode
和(string)进行查询ErrorCode
?
看一看TableErrorCodeStrings
列出所有可能的错误代码的类。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句