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'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 consecutiveReplaceable
instances (consecutively returned by anIterator
on a Set or Collection) have any original-location HTML-Vector
indices that are overlapping.
-
ReplaceablesUnsortedException
- If two consecutiveReplaceable
instances (consecutively returned by anIterator
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 aReplaceable
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
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 long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ReplaceableException()
Constructs aReplaceableException
with no detail message.ReplaceableException(String message)
Constructs aReplaceableException
with the specified 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
-
ReplaceableException
public ReplaceableException()
Constructs aReplaceableException
with no detail message.
-
ReplaceableException
public ReplaceableException(java.lang.String message)
Constructs aReplaceableException
with the specified detail message.- Parameters:
message
- the detail message.
-
-