ExceptionHandlerExtensions Class
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.
Extension methods for enabling ExceptionHandlerExtensions.
public ref class ExceptionHandlerExtensions abstract sealed
public static class ExceptionHandlerExtensions
type ExceptionHandlerExtensions = class
Public Module ExceptionHandlerExtensions
- Inheritance
-
ExceptionHandlerExtensions
Methods
UseExceptionHandler(IApplicationBuilder) |
Adds a middleware to the pipeline that will catch exceptions, log them, and re-execute the request in an alternate pipeline. The request will not be re-executed if the response has already started. |
UseExceptionHandler(IApplicationBuilder, Action<IApplicationBuilder>) |
Adds a middleware to the pipeline that will catch exceptions, log them, and re-execute the request in an alternate pipeline. The request will not be re-executed if the response has already started. |
UseExceptionHandler(IApplicationBuilder, ExceptionHandlerOptions) |
Adds a middleware to the pipeline that will catch exceptions, log them, and re-execute the request in an alternate pipeline. The request will not be re-executed if the response has already started. |
UseExceptionHandler(IApplicationBuilder, String) |
Adds a middleware to the pipeline that will catch exceptions, log them, reset the request path, and re-execute the request. The request will not be re-executed if the response has already started. |
UseExceptionHandler(IApplicationBuilder, String, Boolean) |
Adds a middleware to the pipeline that will catch exceptions, log them, reset the request path, and re-execute the request. The request will not be re-executed if the response has already started. |
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