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

com.kangaroohy.plugin.excel.domain.ErrorMessage Maven / Gradle / Ivy

package com.kangaroohy.plugin.excel.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashSet;
import java.util.Set;

/**
 * 校验错误信息
 *
 * @author kangaroohy
 * @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