共用方式為


ExceptionInformation Class

  • java.lang.Object
    • microsoft.servicefabric.services.communication.client.ExceptionInformation

public class ExceptionInformation

Specifies the class that encapsulates the exception seen on the communication channel and additional information required to handle that exception.

Constructor Summary

Constructor Description
ExceptionInformation(Throwable exception)

Instantiates the exception information using the given exception and the default target replica selector.

ExceptionInformation(Throwable exception, TargetReplicaSelector targetReplica)

Instantiates the exception information using the given exception and target replica selector.

Method Summary

Modifier and Type Method and Description
Throwable getException()

Exception that was seen on the communication channel

TargetReplicaSelector getTargetReplica()

The target replica identifier to which the communication channel was established.

Constructor Details

ExceptionInformation

public ExceptionInformation(Throwable exception)

Instantiates the exception information using the given exception and the default target replica selector.

Parameters:

exception - The exception that was received.

ExceptionInformation

public ExceptionInformation(Throwable exception, TargetReplicaSelector targetReplica)

Instantiates the exception information using the given exception and target replica selector.

Parameters:

exception - The exception that was received
targetReplica - The target replica information

Method Details

getException

public Throwable getException()

Exception that was seen on the communication channel

Returns:

The Throwable that was seen.

getTargetReplica

public TargetReplicaSelector getTargetReplica()

The target replica identifier to which the communication channel was established.

Returns:

A TargetReplicaSelector that specifies gives information about the target replica

Applies to