你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
RemoteExceptionInformation Class
- java.
lang. Object - microsoft.
servicefabric. services. communication. runtime. RemoteExceptionInformation
- microsoft.
public class RemoteExceptionInformation
Fault type used by Service Remoting to transfer the exception details from the Service Replica to the client.
Constructor Summary
Constructor | Description |
---|---|
RemoteExceptionInformation(byte[] data) |
Instantiates the RemoteExceptionInformation object with the data |
Method Summary
Modifier and Type | Method and Description |
---|---|
Remote |
fromException(Exception exception)
Factory method that constructs the RemoteExceptionInformation from an exception. |
byte [] |
getData()
Serialized exception details |
Exception |
toException(RemoteExceptionInformation remoteExceptionInformation)
Gets the exception from the RemoteExceptionInformation |
Constructor Details
RemoteExceptionInformation
public RemoteExceptionInformation(byte[] data)
Instantiates the RemoteExceptionInformation object with the data
Parameters:
Method Details
fromException
public static RemoteExceptionInformation fromException(Exception exception)
Factory method that constructs the RemoteExceptionInformation from an exception.
Parameters:
Returns:
Throws:
getData
public byte [] getData()
Serialized exception details
Returns:
toException
public static Exception toException(RemoteExceptionInformation remoteExceptionInformation)
Gets the exception from the RemoteExceptionInformation
Parameters:
Returns: