$(D_PSYMBOL SocketException) should be thrown only if one of the socket functions returns -1 or $(D_PSYMBOL SOCKET_ERROR) and sets $(D_PSYMBOL errno), because $(D_PSYMBOL SocketException) relies on the $(D_PSYMBOL errno) value.
See Implementation
$(D_PSYMBOL SocketException) should be thrown only if one of the socket functions returns -1 or $(D_PSYMBOL SOCKET_ERROR) and sets $(D_PSYMBOL errno), because $(D_PSYMBOL SocketException) relies on the $(D_PSYMBOL errno) value.