public class SocketException : SystemException
Object
Exception
SystemException
SocketException
System
Networking
Represents the error that occurs when a socket error occurs.
A SocketException is thrown by the Socket and Dns classes when a network error occurs.
System.Net.Sockets Namespace
SocketException Constructors
public SocketException();
Constructs and initializes a new instance of the SocketException class.
The exact behavior of this constructor is implementation-defined.
System.Net.Sockets.SocketException Class, System.Net.Sockets Namespace