Freigeben über


IDeveloperPageExceptionFilter.HandleExceptionAsync Methode

Definition

Eine Ausnahmebehandlungsmethode, die entweder verwendet wird, um die Ausnahme zu formatieren oder an den nächsten Handler in der Kette zu delegieren.

public:
 System::Threading::Tasks::Task ^ HandleExceptionAsync(Microsoft::AspNetCore::Diagnostics::ErrorContext ^ errorContext, Func<Microsoft::AspNetCore::Diagnostics::ErrorContext ^, System::Threading::Tasks::Task ^> ^ next);
public System.Threading.Tasks.Task HandleExceptionAsync (Microsoft.AspNetCore.Diagnostics.ErrorContext errorContext, Func<Microsoft.AspNetCore.Diagnostics.ErrorContext,System.Threading.Tasks.Task> next);
abstract member HandleExceptionAsync : Microsoft.AspNetCore.Diagnostics.ErrorContext * Func<Microsoft.AspNetCore.Diagnostics.ErrorContext, System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Function HandleExceptionAsync (errorContext As ErrorContext, next As Func(Of ErrorContext, Task)) As Task

Parameter

errorContext
ErrorContext

Der Fehlerkontext.

next
Func<ErrorContext,Task>

Der nächste Filter in der Pipeline.

Gibt zurück

Eine Aufgabe, die abgeschlossen wird, wenn der Handler ausgeführt wird.

Gilt für: