Added error codes on datagramsocket exception