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)

abstract AddError : 
        errorInfo:Exception -> unit
override AddError : 
        errorInfo:Exception -> unit

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: