C# Class Microsoft.WindowsAzure.Commands.Storage.Common.StorageExceptionUtil

Storage exception utility
显示文件 Open project: Azure/azure-powershell

Public Methods

Method Description
IsConflictException ( this e ) : bool

Whether the storage exception is 409 conflict exception

IsNotFoundException ( this e ) : bool

Whether the storage exception is resource not found exception or not.

IsSuccessfulResponse ( this e ) : bool

Is the storage exception thrown with 2xx http status code

RepackStorageException ( this e ) : Microsoft.WindowsAzure.Storage.StorageException

Replace storage exception to expose more information in Message.

Method Details

IsConflictException() public static method

Whether the storage exception is 409 conflict exception
public static IsConflictException ( this e ) : bool
e this StorageException from the storage client
return bool

IsNotFoundException() public static method

Whether the storage exception is resource not found exception or not.
public static IsNotFoundException ( this e ) : bool
e this StorageException from storage client
return bool

IsSuccessfulResponse() public static method

Is the storage exception thrown with 2xx http status code
public static IsSuccessfulResponse ( this e ) : bool
e this Storage exception
return bool

RepackStorageException() public static method

Replace storage exception to expose more information in Message.
public static RepackStorageException ( this e ) : Microsoft.WindowsAzure.Storage.StorageException
e this StorageException from storage client
return Microsoft.WindowsAzure.Storage.StorageException