StorageException Constructor (StorageErrorCode, String, HttpStatusCode, StorageExtendedErrorInformation, Exception)

Storage Client Library NET API

[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See Storage Client Library for the latest version.]

Initializes a new instance of the StorageException Class with the Storage client error code, a message describing the exception, the HTTP status code returned in the response, the extended error information, and the Exception instance that caused the current exception.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)

Usage

Visual Basic
Dim errorCode As StorageErrorCode
Dim message As String
Dim statusCode As HttpStatusCode
Dim extendedErrorInfo As StorageExtendedErrorInformation
Dim innerException As Exception

Dim instance As New StorageException(errorCode, message, statusCode, extendedErrorInfo, innerException)

Syntax

Visual Basic
Protected Sub New ( _
	errorCode As StorageErrorCode, _
	message As String, _
	statusCode As HttpStatusCode, _
	extendedErrorInfo As StorageExtendedErrorInformation, _
	innerException As Exception _
)
C#
protected StorageException (
	StorageErrorCode errorCode,
	string message,
	HttpStatusCode statusCode,
	StorageExtendedErrorInformation extendedErrorInfo,
	Exception innerException
)
C++
protected:
StorageException (
	StorageErrorCode errorCode, 
	String^ message, 
	HttpStatusCode statusCode, 
	StorageExtendedErrorInformation^ extendedErrorInfo, 
	Exception^ innerException
)
J#
JScript

Parameters

errorCode

Type: Microsoft.WindowsAzure.StorageClient.StorageErrorCode

The storage client error code.

message

Type: System.String

The message that describes the exception.

statusCode

Type: System.Net.HttpStatusCode

The HTTP status code returned in the response.

extendedErrorInfo

Type: Microsoft.WindowsAzure.StorageClient.StorageExtendedErrorInformation

The extended error information.

innerException

Type: System.Exception

The Exception instance that caused the current exception.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

See Also