RemoteExceptionInformation Class

  • java.lang.Object
    • microsoft.servicefabric.services.communication.runtime.RemoteExceptionInformation

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
RemoteExceptionInformation 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:

data - Data to be sent to the client

Method Details

fromException

public static RemoteExceptionInformation fromException(Exception exception)

Factory method that constructs the RemoteExceptionInformation from an exception.

Parameters:

exception - Exception

Returns:

RemoteExceptionInformation

Throws:

java.io.IOException - exception

getData

public byte [] getData()

Serialized exception details

Returns:

Data in the exception

toException

public static Exception toException(RemoteExceptionInformation remoteExceptionInformation)

Gets the exception from the RemoteExceptionInformation

Parameters:

remoteExceptionInformation - RemoteExceptionInformation

Returns:

Exception if there was a valid exception

Applies to