Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This basic WebService ExceptionHandler captures the exception and records it in the request Context for future logging. Services may choose 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.Server.Core.WebServices
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.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
- exception 
 Type: System.Exception- Exception that caused the request to fail. 
- exceptionHeader 
 Type: System.String- Header to 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.