001package Torello.HTML;
002
003/**
004 * If a programmer is writing code, and expecting an HTML-Page {@code Vector} position to contain a
005 * specific type of {@code HTMLNode}, and it is not found anywhere on that page, sub-page or
006 * sub-section, then this exception may be used.
007 *
008 * <BR /><BR /><B>For Instance:</B> When attempting to insert a {@code favicon} image into a
009 * Vectorized-HTML page, first, the page's {@code header} section must be found.  This is
010 * to make sure that the favicon {@code URL} iz inserted into the appropriate location on the page,
011 * so as not to confuse a web-browser.  <I>If that page is lacking an HTML {@code <HEAD>}
012 * section</I> then throwing a {@code NodeNotFoundException} is appropriate.
013 */
014public class NodeNotFoundException extends NodeExpectedException
015{
016    /** <EMBED CLASS="external-html" DATA-FILE-ID="SVUIDEX"> */
017    public static final long serialVersionUID = 1;
018
019    /** Constructs a {@code NodeNotFoundException} with no detail message. */
020    public NodeNotFoundException()
021    { super(); }
022
023    /**
024     * Constructs a {@code NodeNotFoundException} with the specified detail message.
025     * @param message the detail message.
026     */
027    public NodeNotFoundException(String message)
028    { super(message); }
029
030    /**
031     * Constructs a new exception with the specified detail message and cause.
032     * <BR /><BR /><B>NOTE:</B> The detail message associated with cause is not automatically 
033     * incorporated in this exception's detail message.
034     * @param message The detail message (which is saved for later retrieval by the
035     * {@code Throwable.getMessage()} method).
036     * @param cause the cause (which is saved for later retrieval by the {@code Throwable.getCause()}
037     * method).  (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
038     */
039    public NodeNotFoundException(String message, Throwable cause)
040    { super(message, cause); }
041
042    /**
043     * Constructs a new exception with the specified cause and a detail message of
044     * {@code (cause==null ? null : cause.toString())} (which typically contains the class and detail
045     * message of cause).
046     * This constructor is useful for exceptions that are little more than wrappers for other
047     * throwables.
048     * @param cause The cause (which is saved for later retrieval by the {@code Throwable.getCause()}
049     * method).  (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
050     */
051    public NodeNotFoundException(Throwable cause)
052    { super(cause); }
053}