question: public void error ( QueryErrorType errType , String msg ) throws IOException { out . writeByte ( ERROR_RECORD_MARKER ) ; if ( errType == QueryErrorType . MALFORMED_QUERY_ERROR ) { out . writeByte ( MALFORMED_QUERY_ERROR ) ; } else { out . writeByte ( QUERY_EVALUATION_ERROR ) ; } writeString ( msg ) ; }
target:  Writes an error msg to the stream.