HttpContext.AddError Method (Exception)

 

Adds an exception to the exception collection for the current HTTP request.

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

public void AddError(
	Exception errorInfo
)

Parameters

errorInfo
Type: System.Exception

The Exception to add to the exception collection.

.NET Framework
Available since 1.1
Return to top
Show: