Table of Contents

Class ExceptionFilterAttribute

Namespace
System.Web.Http.Filters
Assembly
System.Web.Http.dll

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

actionExecutedContext HttpActionExecutedContext

The context for the action.