DatabaseDeveloperPageExceptionFilter.HandleExceptionAsync Method

Definition

Handle DbException errors and output an HTML response with additional details.

public:
 virtual 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
override this.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

Parameters

errorContext
ErrorContext

The error context.

next
Func<ErrorContext,Task>

The next filter in the pipeline.

Returns

A task the completes when the handler is done executing.

Implements

Applies to