A SocketException is when a socket error occurs. Both Socket and Dns classes throw this error when the network isn’t configured correctly.