package com.zjrs.appcomm.template.excel.exception;

import com.zjrs.appcomm.utils.StringUtil;

/**
 * 异常表头异常
 * @author froms
 *
 */
public class IllegalHeaderException extends IllegalArgumentException {

	private static final long serialVersionUID = 6627653606445491334L;
	
	/** 异常的表头 */
	private String[] illegalHeaders;	//TODO: 异常的表头到底是完整内容还是仅仅异常的内容
	/**
	 * 获取异常的表头
	 * @return 异常的表头
	 */
	public String[] getIllegalHeaders() { return illegalHeaders; }

	/**
	 * 异常表头异常
	 * @param illegalHeaders 异常的表头
	 */
	public IllegalHeaderException(String... illegalHeaders) {
		super(StringUtil.join(illegalHeaders, ","));
		this.illegalHeaders = illegalHeaders;
	}
	
}
