TeamFoundationHttpHandler.HandleException 方法
这个基本 WebService ExceptionHandler 在将来记录的请求上下文捕获异常并将它记录。 服务可以选择重写此方法,根据异常,更改异常,就餐或者让其的事件传递。
命名空间: Microsoft.TeamFoundation.Server.Core.WebServices
程序集: Microsoft.TeamFoundation.Server.Core(在 Microsoft.TeamFoundation.Server.Core.dll 中)
语法
声明
Protected Overridable Function HandleException ( _
exception As Exception, _
exceptionHeader As String, _
statusCode As Integer, _
responseStarted As Boolean _
) As Exception
protected virtual Exception HandleException(
Exception exception,
string exceptionHeader,
int statusCode,
bool responseStarted
)
参数
- exception
类型:System.Exception
导致该请求失败的异常。
- exceptionHeader
类型:System.String
要使用的标头放置异常类型。
- statusCode
类型:System.Int32
响应的 HttpStatus 代码。
- responseStarted
类型:System.Boolean
具有响应启动的发送。
返回值
类型:System.Exception
发生的异常,基类返回传递的异常。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。