HttpContextBase.Error Property


When overridden in a derived class, gets the first error (if any) that accumulated when an HTTP request was being processed.

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

public virtual Exception Error { get; }

Property Value

Type: System.Exception

The first exception for the current HTTP request/response process, or null if no errors accumulated during the HTTP request processing.

Exception Condition


.NET Framework
Available since 3.5
Return to top