001package Torello.Java.ReadOnly; 002 003/** 004 * When a Read-Only Data-Type is constructed from a builder, any attempt to further modify the 005 * Data-Type using the original Builder's Mutator-Methods will cause this exception to throw. 006 */ 007public class AttemptedModificationException extends RuntimeException 008{ 009 /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */ 010 public static final long serialVersionUID = 1; 011 012 /** Constructs an {@code AttemptedModificationException} with the standard detail message. */ 013 public AttemptedModificationException(String className) 014 { super("This builder instance has already been constructed into a Read-Only " + className); } 015}