Share via


StorageException.TranslateExceptionAsync Methode

Definition

Übersetzt die angegebene Ausnahme in eine Speicher-Ausnahme.

public static System.Threading.Tasks.Task<Microsoft.Azure.Storage.StorageException> TranslateExceptionAsync (Exception ex, Microsoft.Azure.Storage.RequestResult reqResult, Func<System.IO.Stream,System.Threading.CancellationToken,System.Threading.Tasks.Task<Microsoft.Azure.Storage.StorageExtendedErrorInformation>> parseErrorAsync, System.Threading.CancellationToken cancellationToken, System.Net.Http.HttpResponseMessage response);
static member TranslateExceptionAsync : Exception * Microsoft.Azure.Storage.RequestResult * Func<System.IO.Stream, System.Threading.CancellationToken, System.Threading.Tasks.Task<Microsoft.Azure.Storage.StorageExtendedErrorInformation>> * System.Threading.CancellationToken * System.Net.Http.HttpResponseMessage -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.StorageException>
Public Shared Function TranslateExceptionAsync (ex As Exception, reqResult As RequestResult, parseErrorAsync As Func(Of Stream, CancellationToken, Task(Of StorageExtendedErrorInformation)), cancellationToken As CancellationToken, response As HttpResponseMessage) As Task(Of StorageException)

Parameter

ex
Exception

Die zu übersetzende Ausnahme.

reqResult
RequestResult

Das Ergebnis der Anforderung.

parseErrorAsync
Func<Stream,CancellationToken,Task<StorageExtendedErrorInformation>>

Der Delegat, der zum Analysieren des Fehlers verwendet wird, um erweiterte Fehlerinformationen abzurufen.

cancellationToken
CancellationToken

Abbruchtoken für den asynchronen Vorgang

Gibt zurück

Die Speicher-Ausnahme.

Gilt für: