編輯

共用方式為


HttpContextWrapper.AddError(Exception) Method

Definition

Adds an exception to the exception collection for the current HTTP request.

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

Parameters

errorInfo
Exception

The exception to add to the exception collection.

Applies to