Package Torello.HTML

Class ReplaceableException

  • All Implemented Interfaces:
    Direct Known Subclasses:
    ReplaceableOutOfBoundsException, ReplaceablesOverlappingException, ReplaceablesUnsortedException

    public class ReplaceableException
    extends java.lang.RuntimeException
    In order for a set or collection of <Replaceable> to work properly during an update or replacement, the set or collection (Iterable) of Replaceable's must be properly sorted and the pieces may not overlap (as per their original-locations). Furthermore, their original-location values must all point to indices that are actually within the HTML-Vector's bounds. This is the parent exception of any & all exceptions that may occur if these requirements aren't met. These inheriting-exceptions are listed below:

    • ReplaceablesOverlappingException - If two consecutive Replaceable instances (consecutively returned by an Iterator on a Set or Collection) have any original-location HTML-Vector indices that are overlapping.

    • ReplaceablesUnsortedException - If two consecutive Replaceable instances (consecutively returned by an Iterator on a Set or Collection) have original HTML-Vector starting-locations that are not ordered.

    • ReplaceableOutOfBoundsException - If either the starting or ending original-location of a Replaceable is not within bounds of an HTML-Vector.

    This class may be used for other purposes not currently employed within the standard Java HTML JAR Library.
    See Also:
    Serialized Form

    • Field Summary

      Serializable ID
      Modifier and Type Field
      static long serialVersionUID
    • Constructor Summary

      Constructor Description
      Constructs a ReplaceableException with no detail message.
      ReplaceableException​(String message)
      Constructs a ReplaceableException with the specified detail message.
    • Method Summary

      • 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
    • Field Detail

      • serialVersionUID

        🡇     🗕  🗗  🗖
        public static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface Using the Serializable 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's java.lang.Exception and java.lang.Error classes implement the Serializable interface, and a warning-free build expects this field be defined here.
        See Also:
        Constant Field Values
        Exact Field Declaration Expression:
         public static final long serialVersionUID = 1;