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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應