All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pig4cloud.plugin.excel.vo.ErrorMessage Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy