ExceptionInformation Class
- java.
lang. Object - microsoft.
servicefabric. services. communication. client. ExceptionInformation
- microsoft.
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 |
Target |
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:
ExceptionInformation
public ExceptionInformation(Throwable exception, TargetReplicaSelector targetReplica)
Instantiates the exception information using the given exception and target replica selector.
Parameters:
Method Details
getException
public Throwable getException()
Exception that was seen on the communication channel
Returns:
getTargetReplica
public TargetReplicaSelector getTargetReplica()
The target replica identifier to which the communication channel was established.
Returns:
Applies to
Azure SDK for Java