ActionExecutedContext.Exception Property

Gets or sets the exception that occurred during the execution of the action method, if any.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

function get Exception () : Exception 
function set Exception (value : Exception)

Property Value

Type: System.Exception
The exception that occurred during the execution of the action method.
Show: