ExceptionContext Class

Definition

A context for exception filters i.e. IExceptionFilter and IAsyncExceptionFilter implementations.

public ref class ExceptionContext : Microsoft::AspNetCore::Mvc::Filters::FilterContext
public class ExceptionContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext
type ExceptionContext = class
    inherit FilterContext
Public Class ExceptionContext
Inherits FilterContext
Inheritance

Constructors

ExceptionContext(ActionContext, IList<IFilterMetadata>)

Instantiates a new ExceptionContext instance.

Properties

ActionDescriptor

Gets or sets the ActionDescriptor for the selected action.

(Inherited from ActionContext)
Exception

Gets or sets the Exception caught while executing the action.

ExceptionDispatchInfo

Gets or sets the ExceptionDispatchInfo for the Exception, if this information was captured.

ExceptionHandled

Gets or sets an indication that the Exception has been handled.

Filters

Gets all applicable IFilterMetadata implementations.

(Inherited from FilterContext)
HttpContext

Gets or sets the HttpContext for the current request.

(Inherited from ActionContext)
ModelState

Gets the ModelStateDictionary.

(Inherited from ActionContext)
Result

Gets or sets the IActionResult.

RouteData

Gets or sets the RouteData for the current request.

(Inherited from ActionContext)

Methods

FindEffectivePolicy<TMetadata>()

Returns the most effective (most specific) policy of type TMetadata applied to the action associated with the FilterContext.

(Inherited from FilterContext)
IsEffectivePolicy<TMetadata>(TMetadata)

Returns a value indicating whether the provided IFilterMetadata is the most effective policy (most specific) applied to the action associated with the FilterContext.

(Inherited from FilterContext)

Applies to