AzureStorageExceptionParser 1.0.0

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.
#r "nuget: AzureStorageExceptionParser, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AzureStorageExceptionParser as a Cake Addin
#addin nuget:?package=AzureStorageExceptionParser&version=1.0.0

// Install AzureStorageExceptionParser as a Cake Tool
#tool nuget:?package=AzureStorageExceptionParser&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

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

AzureStorageExceptionParser.