Share via


IExceptionHandler.HandleException Method

When implemented by a class, handles an Exception.

Namespace: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling
Assembly: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling (in Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

Exception HandleException(
    Exception exception,
    Guid handlingInstanceId
)
'Declaration
Function HandleException ( 
    exception As Exception,
    handlingInstanceId As Guid
) As Exception
Exception^ HandleException(
    Exception^ exception, 
    Guid handlingInstanceId
)

Parameters

  • handlingInstanceId
    Type: System.Guid

    The unique ID attached to the handling chain for this handling instance.

Return Value

Type: Exception

Modified exception to pass to the next exceptionHandlerData in the chain.

See Also

IExceptionHandler Interface

IExceptionHandler Members

Microsoft.Practices.EnterpriseLibrary.ExceptionHandling Namespace