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

/**
 * Exception thrown when a line is formattted incorrectly.
 * @author Ben Culkin
 *
 */
public class InvalidLineFormat extends RuntimeException {
	private static final long serialVersionUID = 5332131472090792841L;

	/**
	 * Create a new exception for an incorrectly formatted line.
	 * @param lne The line that was incorrectly formatted.
	 */
	public InvalidLineFormat(String lne) {
		super(String.format(
				"Line '%s' is improperly formatted.\n\tExpected format is a string key, followed by a single space, followed by the value",
				""));
	}
}