AzureStorageExceptionParser 1.0.0
dotnet add package AzureStorageExceptionParser --version 1.0.0
NuGet\Install-Package AzureStorageExceptionParser -Version 1.0.0
<PackageReference Include="AzureStorageExceptionParser" Version="1.0.0" />
paket add AzureStorageExceptionParser --version 1.0.0
#r "nuget: AzureStorageExceptionParser, 1.0.0"
// 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 | Versions 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. |
-
- WindowsAzure.Storage (>= 4.3.0)
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.