code: protected void handleError(String errMsg) throws Exception {
      // log it
      LOGGER.log(Level.SEVERE, errMsg);
      // and throw an error if this is configured
      if (this.isThrowExceptionOnError()) {
        throw new Exception(errMsg);
      }
    }
docs: handle the given error Message according to the exception setting
  
  @param errMsg
  @throws Exception