code: protected void validateDataWhenConstruct() throws WriteExcelException {
          if (this.rowNumReserved > EXCEL_ROW_RESERVED_MOST) {
              throw new WriteExcelException(String.format("预留行数不得超过最大值%d", EXCEL_ROW_RESERVED_MOST));
          }
          if (this.limit > 0) {
              if (XLSX == this.excelType && this.allowMaxRows > XLSX_ROW_MOST) {
                  throw new WriteExcelException(String.format("每页行数不得超过最大值%d", XLSX_ROW_MOST));
              }
              if (XLS == this.excelType && this.allowMaxRows > XLS_ROW_MOST) {
                  throw new WriteExcelException(String.format("每页行数不得超过最大值%d", XLS_ROW_MOST));
              }
          }
      }
docs: 构造时校验数据,此种校验只会进行一次
  
  @throws WriteExcelException 校验错误异常