c# - Azure storage API for common REST API Error codes -


this may silly question need find c# azure storage exception api wrap “common rest api error codes” https://msdn.microsoft.com/en-us/library/azure/dd179357.aspx.

say if specific exception on table operation can check error code against “microsoft.windowsazure.storage.table.protocol.tableerrorcodestrings”

i have functionality wrap creation of table/blob/queue operation in single method , checking error type resourcealreadyexists while exception handling.

i see error code resourcealreadyexists in azure storage common rest api error codes per documentation not able find corresponding c# azure storage api.

please let me know if have insight or how can find it.

i think you're reading literally rest api documentation. :) here strings resources exist.

microsoft.windowsazure.storage.blob.protocol.bloberrorcodestrings.blobalreadyexists; microsoft.windowsazure.storage.queue.protocol.queueerrorcodestrings.queuealreadyexists; microsoft.windowsazure.storage.table.protocol.tableerrorcodestrings.tablealreadyexists; 

so, need check appropriate 1 depending on azure storage resource working @ time.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -