HttpContextWrapper.Error Property


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

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 override Exception Error { get; }

Property Value

Type: System.Exception

The first exception for the current HTTP request, or null if no errors accumulated when the HTTP request was being processed. The default is null.

.NET Framework
Available since 3.5
Return to top