StorageException.TranslateExceptionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Translates the specified exception into a storage exception.
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)
Parameters
- ex
- Exception
The exception to translate.
- reqResult
- RequestResult
The request result.
- parseErrorAsync
- Func<Stream,CancellationToken,Task<StorageExtendedErrorInformation>>
The delegate used to parse the error to get extended error information.
- cancellationToken
- CancellationToken
cancellation token for the async operation
- response
- HttpResponseMessage
Returns
The storage exception.
Applies to
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.
Azure SDK for .NET
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: