TeamFoundationPage.HandleException Method
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
Assembly: Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)
Syntax
'Declaration
Protected Overridable Function HandleException ( _
exception As Exception _
) As Exception
protected virtual Exception HandleException(
Exception exception
)
protected:
virtual Exception^ HandleException(
Exception^ exception
)
abstract HandleException :
exception:Exception -> Exception
override HandleException :
exception:Exception -> Exception
protected function HandleException(
exception : Exception
) : Exception
Parameters
exception
Type: System.ExceptionException that caused the request to fail.
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.