HandleErrorAttribute HandleErrorAttribute HandleErrorAttribute Class


Represents an attribute that is used to handle an exception that is thrown by an action method.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class HandleErrorAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IExceptionFilter
type HandleErrorAttribute = class
    inherit FilterAttribute
    interface IExceptionFilter
Public Class HandleErrorAttribute
Inherits FilterAttribute
Implements IExceptionFilter


HandleErrorAttribute() HandleErrorAttribute() HandleErrorAttribute()

Initializes a new instance of the HandleErrorAttribute class.


AllowMultiple AllowMultiple AllowMultiple

Gets or sets a value that indicates whether more than one instance of the filter attribute can be specified.

(Inherited from FilterAttribute)
ExceptionType ExceptionType ExceptionType

Gets or sets the type of the exception.

Master Master Master

Gets or sets the master view for displaying exception information.

Order Order Order

Gets or sets the order in which the action filters are executed.

(Inherited from FilterAttribute)
TypeId TypeId TypeId

Gets the unique identifier for this attribute.

View View View

Gets or sets the page view for displaying exception information.


OnException(ExceptionContext) OnException(ExceptionContext) OnException(ExceptionContext)

Called when an exception occurs.

Applies to