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 long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description AttemptedModificationException(String className)
Constructs anAttemptedModificationException
with the standard detail message.
-
-
-
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 theSerializable
Implementation 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.Exception
andjava.lang.Error
classes 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 anAttemptedModificationException
with the standard detail message.
-
-