Error Property

HttpContext.Error Property


Gets the first error (if any) accumulated during HTTP request processing.

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

public Exception Error { get; }

Property Value

Type: System.Exception

The first Exception for the current HTTP request/response process; otherwise, null if no errors were accumulated during the HTTP request processing. The default is null.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft