Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft