HttpContextBase.AddError Method (Exception)

 

When overridden in a derived class, adds an exception to the exception collection for the current HTTP request.

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

public virtual void AddError(
	Exception errorInfo
)

Parameters

errorInfo
Type: System.Exception

The exception to add to the exception collection.

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show: