com.pig4cloud.plugin.excel.vo.ErrorMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of excel-spring-boot-starter Show documentation
Show all versions of excel-spring-boot-starter Show documentation
easy and high performance excel
package com.pig4cloud.plugin.excel.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.HashSet;
import java.util.Set;
/**
* 校验错误信息
*
* @author lengleng
* @date 2021/8/4
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ErrorMessage {
/**
* 行号
*/
private Long lineNum;
/**
* 错误信息
*/
private Set errors = new HashSet<>();
public ErrorMessage(Set errors) {
this.errors = errors;
}
public ErrorMessage(String error) {
HashSet objects = new HashSet<>();
objects.add(error);
this.errors = objects;
}
}