IDeveloperPageExceptionFilter.HandleExceptionAsync 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.
An exception handling method that is used to either format the exception or delegate to the next handler in the chain.
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
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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for