1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package Torello.Java.ReadOnly;

/**
 * When a Read-Only Data-Type is constructed from a builder, any attempt to further modify the
 * Data-Type using the original Builder's Mutator-Methods will cause this exception to throw.
 */
public class AttemptedModificationException extends RuntimeException
{
    /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX>  */
    public static final long serialVersionUID = 1;

    /** Constructs an {@code AttemptedModificationException} with the standard detail message. */
    public AttemptedModificationException(String className)
    { super("This builder instance has already been constructed into a Read-Only " + className); }
}