nuget.org : azurestorageexceptionparser
Extension class for Azure StorageException to extract usefull information embedded inside the StorageException object by Azure Storage services on a failed request. Provides StorageException extension methods to extract: - ErrorCode - ETag - ExtendedErrorMessage - FailedOperationIndex (of a failed Batch Operation) - HttpStatusCode - OperationStartTime (UTC) - OperationEndTime (UTC) - RequestDate (UTC) - RequestId - TargetLocation (Primary, Secondary, etc.) - IsOptimisticConcurrencyFailure And extended ToString() method which automatically extracts this information from the exception instance and converts it into a string for logging purposes. Usage: Try { //Make a request to Azure Table Storage (Blob, Table, Queue, ..) } catch (StorageException storageException) { //Gives you the HttpStatusCode embedded inside the StorageException int? httpStatusCode = storageException.GetHttpStatusCode(); // Gives you the index of the failed operation in a azure table batch operation int failedOperationIndex = storageException.GetFailedOperationIndex(); }
Registry
- JSON
- codemeta.json
purl: pkg:nuget/azurestorageexceptionparser
Keywords:
Azure
, Table
, Queue
, Blob
, Storage
, Exception
, Extension
, Parser
, Helper
License:
Latest release: about 10 years ago
First release: about 10 years ago
Downloads: 6,464 total
Last synced: 13 days ago