Package Torello.HTML
Class ReplaceableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- Torello.HTML.ReplaceableException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ReplaceableOutOfBoundsException,ReplaceablesOverlappingException,ReplaceablesUnsortedException
public class ReplaceableException extends java.lang.RuntimeException
In order for a set or collection of<to work properly during an update or replacement, the set or collection (Replaceable>Iterable) ofReplaceable'smust 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'sbounds. 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 consecutiveReplaceableinstances (consecutively returned by anIteratoron a Set or Collection) have any original-location HTML-Vectorindices that are overlapping.
-
ReplaceablesUnsortedException- If two consecutiveReplaceableinstances (consecutively returned by anIteratoron a Set or Collection) have original HTML-Vectorstarting-locations that are not ordered.
-
ReplaceableOutOfBoundsException- If either the starting or ending original-location of aReplaceableis 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
Hi-Lited Source-Code:- View Here: Torello/HTML/ReplaceableException.java
- Open New Browser-Tab: Torello/HTML/ReplaceableException.java
File Size: 2,401 Bytes Line Count: 57 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field static longserialVersionUID
-
Constructor Summary
Constructors Constructor ReplaceableException()ReplaceableException(String 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 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
-
ReplaceableException
public ReplaceableException()
Constructs aReplaceableExceptionwith no detail message.
-
ReplaceableException
public ReplaceableException(java.lang.String message)
Constructs aReplaceableExceptionwith the specified detail message.- Parameters:
message- the detail message.
-
-