TeamFoundationHttpHandler.HandleException Method

This basic WebService ExceptionHandler captures the exception and records it in the request Context for future logging.

Services may decide to over-ride this method, perform some actions based on the exception, changing the exception, eating it or just letting it pass.

Namespace:  Microsoft.TeamFoundation.Framework.Server.WebServices
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
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
)
protected:
virtual Exception^ HandleException(
    Exception^ exception, 
    String^ exceptionHeader, 
    int statusCode, 
    bool responseStarted
)
abstract HandleException : 
        exception:Exception * 
        exceptionHeader:string * 
        statusCode:int * 
        responseStarted:bool -> Exception  
override HandleException : 
        exception:Exception * 
        exceptionHeader:string * 
        statusCode:int * 
        responseStarted:bool -> Exception
protected function HandleException(
    exception : Exception, 
    exceptionHeader : String, 
    statusCode : int, 
    responseStarted : boolean
) : Exception

Parameters

  • exceptionHeader
    Type: System.String

    Header that will be used to put the exception type in.

  • statusCode
    Type: System.Int32

    HttpStatus code for the response.

  • responseStarted
    Type: System.Boolean

    Has the response started being sent.

Return Value

Type: System.Exception
The resulting exception, the base class returns the exception passed.

.NET Framework Security

See Also

Reference

TeamFoundationHttpHandler Class

Microsoft.TeamFoundation.Framework.Server.WebServices Namespace