Condividi tramite


StorageException Constructors

Definition

Overloads

StorageException()

Initializes a new instance of the StorageException class.

StorageException(String)

Initializes a new instance of the StorageException class using the specified error message.

StorageException(SerializationInfo, StreamingContext)

Initializes a new instance of the StorageException class with serialized data.

StorageException(String, Exception)

Initializes a new instance of the StorageException class with a specified error message and a reference to the inner exception that generated this exception.

StorageException(RequestResult, String, Exception)

Initializes a new instance of the StorageException class by using the specified parameters.

StorageException()

Initializes a new instance of the StorageException class.

public StorageException ();
Public Sub New ()

Applies to

StorageException(String)

Initializes a new instance of the StorageException class using the specified error message.

public StorageException (string message);
new Microsoft.Azure.Storage.StorageException : string -> Microsoft.Azure.Storage.StorageException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

StorageException(SerializationInfo, StreamingContext)

Initializes a new instance of the StorageException class with serialized data.

protected StorageException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Storage.StorageException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Storage.StorageException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo object that holds serialized object data for the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Remarks

This constructor is called during de-serialization to reconstitute the exception object transmitted over a stream.

Applies to

StorageException(String, Exception)

Initializes a new instance of the StorageException class with a specified error message and a reference to the inner exception that generated this exception.

public StorageException (string message, Exception innerException);
new Microsoft.Azure.Storage.StorageException : string * Exception -> Microsoft.Azure.Storage.StorageException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The exception error message.

innerException
Exception

The inner exception.

Applies to

StorageException(RequestResult, String, Exception)

Initializes a new instance of the StorageException class by using the specified parameters.

public StorageException (Microsoft.Azure.Storage.RequestResult res, string message, Exception inner);
new Microsoft.Azure.Storage.StorageException : Microsoft.Azure.Storage.RequestResult * string * Exception -> Microsoft.Azure.Storage.StorageException
Public Sub New (res As RequestResult, message As String, inner As Exception)

Parameters

res
RequestResult

The request result.

message
String

The exception message.

inner
Exception

The inner exception.

Applies to