When handling a Microsoft.WindowsAzure.Storage.StorageException
raised by Azure Table Storage, is there a way of determining what the error is without querying the HTTPStatusCode
and the ErrorCode
. For example when trying to insert a duplicate entity the following is raised by Azure :
HTTPStatusCode : 409
ErrorCode : "EntityAlreadyExists"
Is there an enumeration of these error codes that I can switch on rather than directly querying against both the (int) HTTPStatusCode
and (string) ErrorCode
?
看一下TableErrorCodeStrings
类,其中列出了所有可能的错误代码。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.