summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/ioutils/DuplicateKeys.java
blob: 604cc69c9d1606f418f97efa6b6022df0fe5ed96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package bjc.utils.ioutils;

/**
 * Exception thrown when there is a duplicate key, when they are forbidden.
 *
 * @author 15405
 *
 */
public class DuplicateKeys extends RuntimeException {
	private static final long serialVersionUID = -5521190136366024804L;

	/**
	 * Create a new duplicate key exception.
	 *
	 * @param keyName
	 *                The name of the key that has been duplicated.
	 */
	public DuplicateKeys(String keyName) {
		super(String.format("Duplicate value encountered for key '%s'", keyName));
	}
}