Information

Description
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(); }
Version
1.0.0.0
Project Url
View on NuGet: http://www.nuget.org/packages/AzureStorageExceptionParser

Dependencies

Here are the packages that version 1.0.0.0 of AzureStorageExceptionParser depends on.

CoreHelpers.WindowsAzure.Storage.Table : (1.0.19)

Authors

 

Installing with NuGet

PM> Install-Package AzureStorageExceptionParser

Packages that Depend on AzureStorageExceptionParser

No packages were found that depend on version 1.0.0.0.