SocketException Class
NuGet: GHIElectronics.TinyCLR.Networking
Assembly: GHIElectronics.TinyCLR.Networking
Namespace: System.Net.Sockets
The exception that is thrown when a socket error occurs.
public class SocketException : Exception
Constructors
SocketException()
public SocketException() : this((int)SocketError.SocketError)
Initializes a new instance with a generic socket error.
SocketException(SocketError errorCode)
public SocketException(SocketError errorCode) : this((int)errorCode)
Initializes a new instance with the specified socket error.
SocketException(int errorCode)
public SocketException(int errorCode)
Initializes a new instance with the specified error code.
Properties
SocketErrorCode
public SocketError SocketErrorCode { get; }
The error associated with this exception as a strongly-typed value.
ErrorCode
public int ErrorCode { get; }
The numeric error code associated with this exception.
Message
public override string Message { get; }
A message that describes the socket error.