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:
Applies to
Azure SDK for Java