summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/ioutils/format/EscapeException.java
blob: 086f1cd166de315ea10deee7b50ebcab20219928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package bjc.utils.ioutils.format;

/**
 * An exception thrown to escape CL iteration directives.
 * 
 * @author EVE
 *
 */
public class EscapeException extends RuntimeException {
	private static final long serialVersionUID = -4552821131068559005L;

	/**
	 * Whether or not this exception should end iteration.
	 */
	public final boolean endIteration;

	/**
	 * Create a new escape exception.
	 */
	public EscapeException() {
		endIteration = false;
	}

	/**
	 * Create a new escape exception.
	 * 
	 * @param end
	 *        Whether or not to end the iteration.
	 */
	public EscapeException(boolean end) {
		endIteration = end;
	}
}