ExceptionContext Class

Definition

Provides the context for using the HandleErrorAttribute class.

public class ExceptionContext : System.Web.Mvc.ControllerContext
type ExceptionContext = class
    inherit ControllerContext
Public Class ExceptionContext
Inherits ControllerContext
Inheritance
ExceptionContext

Constructors

ExceptionContext()

Initializes a new instance of the ExceptionContext class.

ExceptionContext(ControllerContext, Exception)

Initializes a new instance of the ExceptionContext class for the specified exception by using the specified controller context.

Properties

Controller

Gets or sets the controller.

(Inherited from ControllerContext)
DisplayMode

Gets the display mode.

(Inherited from ControllerContext)
Exception

Gets or sets the exception object.

ExceptionHandled

Gets or sets a value that indicates whether the exception has been handled.

HttpContext

Gets or sets the HTTP context.

(Inherited from ControllerContext)
IsChildAction

Gets a value that indicates whether the associated action method is a child action.

(Inherited from ControllerContext)
ParentActionViewContext

Gets an object that contains the view context information for the parent action method.

(Inherited from ControllerContext)
RequestContext

Gets or sets the request context.

(Inherited from ControllerContext)
Result

Gets or sets the action result.

RouteData

Gets or sets the URL route data.

(Inherited from ControllerContext)

Applies to