Exception Filter exception propagation (#25015)
Co-authored-by: Kirk Larkin <6025110+serpent5@users.noreply.github.com>pull/25017/head
parent
f648ff6168
commit
9e5ea0d651
|
@ -1001,7 +1001,7 @@ Exception filters:
|
|||
* Handle unhandled exceptions that occur in Razor Page or controller creation, [model binding](xref:mvc/models/model-binding), action filters, or action methods.
|
||||
* Do **not** catch exceptions that occur in resource filters, result filters, or MVC result execution.
|
||||
|
||||
To handle an exception, set the <xref:System.Web.Mvc.ExceptionContext.ExceptionHandled> property to `true` or write a response. This stops propagation of the exception. An exception filter can't turn an exception into a "success". Only an action filter can do that.
|
||||
To handle an exception, set the <xref:System.Web.Mvc.ExceptionContext.ExceptionHandled> property to `true` or assign the <xref:Microsoft.AspNetCore.Mvc.Filters.ExceptionContext.Result%2A> property. This stops propagation of the exception. An exception filter can't turn an exception into a "success". Only an action filter can do that.
|
||||
|
||||
Exception filters:
|
||||
|
||||
|
|
Loading…
Reference in New Issue