package lu.tudor.santec.gecamed.formeditor.gui.exception;

import java.util.TreeMap;

import lu.tudor.santec.gecamed.formeditor.gui.FormWidgets;

public class DuplicateEntryException extends Exception {
	private static final long serialVersionUID = 1L;
	
	private TreeMap<Object, Number> data;
	
	public DuplicateEntryException (String message, TreeMap<Object, Number> map) {
		super("The following keys exist several times and are overwriten for that:" +
				FormWidgets.NEWLINE + message);
		
		this.data = map;
	}
	
	public TreeMap<Object, Number> getData () {
		return data;
	}
}
