Class ExceptionFilterAttribute
Represents the attributes for the exception filter.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
public abstract class ExceptionFilterAttribute : FilterAttribute, IExceptionFilter, IFilter
- Inheritance
-
ExceptionFilterAttribute
- Implements
- Inherited Members
Constructors
ExceptionFilterAttribute()
Initializes a new instance of the ExceptionFilterAttribute class.
protected ExceptionFilterAttribute()
Methods
OnException(HttpActionExecutedContext)
Raises the exception event.
public virtual void OnException(HttpActionExecutedContext actionExecutedContext)
Parameters
actionExecutedContextHttpActionExecutedContextThe context for the action.
OnExceptionAsync(HttpActionExecutedContext, CancellationToken)
public virtual Task OnExceptionAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)
Parameters
actionExecutedContextHttpActionExecutedContextcancellationTokenCancellationToken