HttpContext.AddError(Exception) 方法

定义

将异常添加到当前 HTTP 请求的异常集合中。Adds an exception to the exception collection for the current HTTP request.

public:
 void AddError(Exception ^ errorInfo);
public void AddError (Exception errorInfo);
member this.AddError : Exception -> unit
Public Sub AddError (errorInfo As Exception)

参数

errorInfo
Exception

要添加到异常集合中的 ExceptionThe Exception to add to the exception collection.

适用于