HandleErrorAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Inheritance
- Attributes
- Implements
Constructors
HandleErrorAttribute() |
Initializes a new instance of the HandleErrorAttribute class. |
Properties
AllowMultiple |
Gets or sets a value that indicates whether more than one instance of the filter attribute can be specified. (Inherited from FilterAttribute) |
ExceptionType |
Gets or sets the type of the exception. |
Master |
Gets or sets the master view for displaying exception information. |
Order |
Gets or sets the order in which the action filters are executed. (Inherited from FilterAttribute) |
TypeId |
Gets the unique identifier for this attribute. |
View |
Gets or sets the page view for displaying exception information. |
Methods
OnException(ExceptionContext) |
Called when an exception occurs. |