你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceRemotingExceptionHandler Class

  • java.lang.Object
    • ExceptionHandler
      • microsoft.servicefabric.services.remoting.client.ServiceRemotingExceptionHandler

public class ServiceRemotingExceptionHandler implements ExceptionHandler

This class provide handling of exceptions encountered in communicating with a service fabric service over remoted interfaces. ServiceRemotingExceptionHandler

Constructor Summary

Constructor Description
ServiceRemotingExceptionHandler(String traceId)

Constructs a ServiceRemotingExceptionHandler with a specified trace id.

Method Summary

Modifier and Type Method and Description
ExceptionHandlingResult handleException(ExceptionInformation exceptionInformation, OperationRetrySettings retrySettings)

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

Constructor Details

ServiceRemotingExceptionHandler

public ServiceRemotingExceptionHandler(String traceId)

Constructs a ServiceRemotingExceptionHandler with a specified trace id.

Parameters:

traceId - Id to use in diagnostics traces from this component.

Method Details

handleException

public ExceptionHandlingResult handleException(ExceptionInformation exceptionInformation, OperationRetrySettings retrySettings)

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

Overrides:

ServiceRemotingExceptionHandler.handleException(ExceptionInformation exceptionInformation, OperationRetrySettings retrySettings)

Parameters:

exceptionInformation - Information about the exception
retrySettings - The operation retry preferences.

Returns:

true if the exception is handled, false otherwise

Applies to