Class IllegalMutationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class IllegalMutationException
    extends java.lang.RuntimeException
    Thrown when a value appears to have been mutated, but that mutation is forbidden.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      IllegalMutationException​(java.lang.String message, java.lang.Object savedValue, java.lang.Object newValue)  
      IllegalMutationException​(java.lang.String message, java.lang.Object savedValue, java.lang.Object newValue, java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getNewValue()
      The value after the illegal mutation.
      java.lang.Object getSavedValue()
      The original value, before the illegal mutation.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IllegalMutationException

        public IllegalMutationException​(java.lang.String message,
                                        java.lang.Object savedValue,
                                        java.lang.Object newValue)
      • IllegalMutationException

        public IllegalMutationException​(java.lang.String message,
                                        java.lang.Object savedValue,
                                        java.lang.Object newValue,
                                        java.lang.Throwable cause)
    • Method Detail

      • getSavedValue

        public java.lang.Object getSavedValue()
        The original value, before the illegal mutation.
      • getNewValue

        public java.lang.Object getNewValue()
        The value after the illegal mutation.