private void writeException(DataOutputStream dos,byte type,Exception ex,Version clientVersion) throws IOException {
  writeMessage(dos,type,ex.toString(),clientVersion);
}

private void writeException ( DataOutputStream dos , byte type , Exception ex , Version clientVersion ) throws IOException { writeMessage ( dos , type , ex . toString ( ) , clientVersion ) ; }
writes an exception message to the socket
