summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/funcdata/ObjectFrozen.java
blob: 2260a0e6c8d6223843900455e6f164427a9c2cb9 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package bjc.funcdata;

/**
 * Exception that implementations of {@link IFreezable} can throw if you attempt
 * to modify a frozen object.
 * 
 * @author Ben Culkin
 *
 */
public class ObjectFrozen extends RuntimeException {
	private static final long serialVersionUID = -1567447627139090728L;

	/**
	 * Create a new ObjectFrozen exception.
	 */
	public ObjectFrozen() {
		super();
	}

	/**
	 * Create a new ObjectFrozen exception.
	 * 
	 * @param message The message of the exception.
	 */
	public ObjectFrozen(String message) {
		super(message);
	}

	/**
	 * Create a new ObjectFrozen exception.
	 * 
	 * @param cause The root cause of this exception.
	 */
	public ObjectFrozen(Throwable cause) {
		super(cause);
	}

	/**
	 * Create a new ObjectFrozen exception.
	 * 
	 * @param message The message of the exception.
	 * @param cause The root cause of this exception.
	 */
	public ObjectFrozen(String message, Throwable cause) {
		super(message, cause);
	}
}