code: protected void addError(final DefaultDataSet ds, final String errorDesc, final int lineNo, final int errorLevel, final String lineData) {
          if (errorLevel == 1 && isIgnoreParseWarnings()) {
              // user has selected to not log warnings in the parser
              return;
          }
          ds.addError(new DataError(errorDesc, lineNo, errorLevel, lineData));
      }
docs: Adds a new error to this DataSet. These can be collected, and retrieved
  after processing
  
  @param ds
  the data set from the parser
  @param errorDesc
  String description of error
  @param lineNo
  line number error occurred on
  @param errorLevel
  errorLevel 1,2,3 1=warning 2=error 3= severe error'
  @param lineData
  Data of the line which failed the parse