IExceptionConvertor.TryConvertToServiceException Method

Definition

Converts user exception to ServiceException.

public bool TryConvertToServiceException (Exception originalException, out Microsoft.ServiceFabric.Services.Communication.ServiceException serviceException);
abstract member TryConvertToServiceException : Exception * ServiceException -> bool
Public Function TryConvertToServiceException (originalException As Exception, ByRef serviceException As ServiceException) As Boolean

Parameters

originalException
Exception

Actual exception observed.

serviceException
ServiceException

ServiceException converted from actual exception.

Returns

True if the exception is handled, false otherwise.

Applies to