AzureStorageExceptionParser 1.0.0

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

Install-Package AzureStorageExceptionParser -Version 1.0.0
dotnet add package AzureStorageExceptionParser --version 1.0.0
<PackageReference Include="AzureStorageExceptionParser" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AzureStorageExceptionParser --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

AzureStorageExceptionParser.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 2,949 1/27/2016