Class SocketExceptionExtensions
- Namespace
- IceRpc.Transports
- Assembly
- IceRpc.dll
Provides an extension method for SocketException to convert it into an IceRpcException.
public static class SocketExceptionExtensions
- Inheritance
-
SocketExceptionExtensions
- Inherited Members
Methods
ToIceRpcException(SocketException, Exception?)
Converts a SocketException into an IceRpcException.
public static IceRpcException ToIceRpcException(this SocketException exception, Exception? innerException = null)
Parameters
exceptionSocketExceptionThe exception to convert.
innerExceptionExceptionThe inner exception for the IceRpcException, when null
exceptionis used as the inner exception.
Returns
- IceRpcException
The IceRpcException created from the SocketException.