Package Torello.Java.ReadOnly
Class AttemptedModificationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- Torello.Java.ReadOnly.AttemptedModificationException
-
- All Implemented Interfaces:
java.io.Serializable
public class AttemptedModificationException extends java.lang.RuntimeException
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.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Java/ReadOnly/AttemptedModificationException.java
- Open New Browser-Tab: Torello/Java/ReadOnly/AttemptedModificationException.java
File Size: 674 Bytes Line Count: 15 '\n' Characters Found
-
-
Field Summary
Fields Modifier and Type Field static longserialVersionUID
-
Constructor Summary
Constructors Constructor AttemptedModificationException(String className)
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
Note that Java'sjava.lang.Exceptionandjava.lang.Errorclasses implement theSerializable interface, and a warning-free build expects this field be defined here.- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
public static final long serialVersionUID = 1;
-
-
Constructor Detail
-
AttemptedModificationException
public AttemptedModificationException(java.lang.String className)
Constructs anAttemptedModificationExceptionwith the standard detail message.- Code:
- Exact Constructor Body:
super("This builder instance has already been constructed into a Read-Only " + className);
-
-