HttpContext.Error 属性

定义

获取在处理 HTTP 请求的过程中累积的第一个错误(如果有)。Gets the first error (if any) accumulated during HTTP request processing.

public:
 property Exception ^ Error { Exception ^ get(); };
public Exception Error { get; }
member this.Error : Exception
Public ReadOnly Property Error As Exception

属性值

Exception

当前 HTTP 请求/响应过程的第一个 Exception;如果在处理 HTTP 请求期间没有发生任何错误,则为 nullThe first Exception for the current HTTP request/response process; otherwise, null if no errors were accumulated during the HTTP request processing. 默认值为 nullThe default is null.

适用于

另请参阅