Table of Contents

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

exception SocketException

The exception to convert.

innerException Exception

The inner exception for the IceRpcException, when null exception is used as the inner exception.

Returns

IceRpcException

The IceRpcException created from the SocketException.