HttpContext.Error Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Show: