An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

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(); }

Ecosystem
nuget.org
Latest Release
1.0.0
about 10 years ago
Versions
1
Downloads
6,490 total
Links
Registry nuget.org
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:nuget/azurestorageexceptionparser
spec
License
First Release about 10 years ago
Last Synced 3 days ago