IExceptionConvertor.TryConvertFromServiceException Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TryConvertFromServiceException(ServiceException, Exception) |
Converts the service exception to user exception. |
TryConvertFromServiceException(ServiceException, Exception, Exception) |
Converts the service exception to user exception. |
TryConvertFromServiceException(ServiceException, Exception[], Exception) |
Converts the service exception to user exception. |
TryConvertFromServiceException(ServiceException, Exception)
Converts the service exception to user exception.
public bool TryConvertFromServiceException (Microsoft.ServiceFabric.Services.Communication.ServiceException serviceException, out Exception actualException);
abstract member TryConvertFromServiceException : Microsoft.ServiceFabric.Services.Communication.ServiceException * Exception -> bool
Public Function TryConvertFromServiceException (serviceException As ServiceException, ByRef actualException As Exception) As Boolean
Parameters
- serviceException
- ServiceException
Service exception.
- actualException
- Exception
User exception.
Returns
True if converted, false otherwise.
Applies to
TryConvertFromServiceException(ServiceException, Exception, Exception)
Converts the service exception to user exception.
public bool TryConvertFromServiceException (Microsoft.ServiceFabric.Services.Communication.ServiceException serviceException, Exception innerException, out Exception actualException);
abstract member TryConvertFromServiceException : Microsoft.ServiceFabric.Services.Communication.ServiceException * Exception * Exception -> bool
Public Function TryConvertFromServiceException (serviceException As ServiceException, innerException As Exception, ByRef actualException As Exception) As Boolean
Parameters
- serviceException
- ServiceException
Service exception.
- innerException
- Exception
Inner exception.
- actualException
- Exception
User exception.
Returns
True if converted, false otherwise.
Applies to
TryConvertFromServiceException(ServiceException, Exception[], Exception)
Converts the service exception to user exception.
public bool TryConvertFromServiceException (Microsoft.ServiceFabric.Services.Communication.ServiceException serviceException, Exception[] innerExceptions, out Exception actualException);
abstract member TryConvertFromServiceException : Microsoft.ServiceFabric.Services.Communication.ServiceException * Exception[] * Exception -> bool
Public Function TryConvertFromServiceException (serviceException As ServiceException, innerExceptions As Exception(), ByRef actualException As Exception) As Boolean
Parameters
- serviceException
- ServiceException
Service exception.
- innerExceptions
- Exception[]
List to inner exception.
- actualException
- Exception
User exception.
Returns
True if converted, false otherwise.
Applies to
Azure SDK for .NET