AzureStorageExceptionParser 1.0.0

dotnet add package AzureStorageExceptionParser --version 1.0.0                
NuGet\Install-Package AzureStorageExceptionParser -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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                
#r "nuget: AzureStorageExceptionParser, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. 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                

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

Product Compatible and additional computed target framework versions.
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 4,810 1/27/2016

AzureStorageExceptionParser.