IAsyncExceptionFilter.OnExceptionAsync(ExceptionContext) IAsyncExceptionFilter.OnExceptionAsync(ExceptionContext) IAsyncExceptionFilter.OnExceptionAsync(ExceptionContext) Method

Definition

Called after an action has thrown an Exception.

public System.Threading.Tasks.Task OnExceptionAsync (Microsoft.AspNetCore.Mvc.Filters.ExceptionContext context);
abstract member OnExceptionAsync : Microsoft.AspNetCore.Mvc.Filters.ExceptionContext -> System.Threading.Tasks.Task
Public Function OnExceptionAsync (context As ExceptionContext) As Task

Parameters

Returns

A Task that on completion indicates the filter has executed.

Applies to