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