Udostępnij za pośrednictwem


IExceptionHandler.TryHandleException Method

Definition

Method that examines the exception and determines how that exception can be handled.

public bool TryHandleException (Microsoft.ServiceFabric.Services.Communication.Client.ExceptionInformation exceptionInformation, Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings, out Microsoft.ServiceFabric.Services.Communication.Client.ExceptionHandlingResult result);
abstract member TryHandleException : Microsoft.ServiceFabric.Services.Communication.Client.ExceptionInformation * Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings * ExceptionHandlingResult -> bool
Public Function TryHandleException (exceptionInformation As ExceptionInformation, retrySettings As OperationRetrySettings, ByRef result As ExceptionHandlingResult) As Boolean

Parameters

exceptionInformation
ExceptionInformation

Information about the exception

retrySettings
OperationRetrySettings

The operation retry preferences.

result
ExceptionHandlingResult

Result of the exception handling

Returns

true if the exception is handled, false otherwise

Applies to