Walter.Web.FireWall
OnCaughtExceptiont Event
Walter.Web.FireWall Assembly > Walter.Web.FireWall Namespace > IFireWall Interface : OnCaughtExceptiont Event
Event triggered when the Firewall caught an exception during the execution of a IPageRequest
Syntax
event EventHandler<ExceptionCaughtEventArgs> OnCaughtExceptiont
Event Data

The event handler receives an argument of type ExceptionCaughtEventArgs containing data related to this event. The following ExceptionCaughtEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets a value indicating whether [exception handled].  
Gets the exception model.  
The object passed as model to the view rendered with the exception if populated or the view had a model  
Gets the page.  
Gets the redirect to action.  
Gets the redirect to controller.  
Gets a value indicating whether to transfer model in rout dictionary (only simple models supported work).  
Remarks

A popular way to hack a site is to crash it to bring it down or to see what happens. This event allows you to except the exception and manage how to deal with it as well as access the page request and generate a blocking incident IPageRequest.RenderThenBlock or IPageRequest.Block on details how to do this.

A positive side effect is that you are able to intercept exceptions and deal with them as they happen without spoiling the users experience

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also