001package Torello.HTML;
002
003/**
004 * <CODE>NodeExpectedException - Documentation.</CODE><BR /><BR />
005 * 
006 * This can be used to catch different types of exceptions using the same branch.
007 * <BR />A "node expected" exception means that an HTML-Page {@code Vector} contained a
008 * {@code TextNode} where it expected to find {@code TagNode}.
009 */
010public abstract class NodeExpectedException extends RuntimeException
011{
012    /** <EMBED CLASS="external-html" DATA-FILE-ID="SVUIDEX"> */
013    public static final long serialVersionUID = 1;
014
015    /** Constructs a {@code NodeExpectedException} with no detail message. */
016    public NodeExpectedException()
017    { super(); }
018
019    /**
020     * Constructs a {@code NodeExpectedException} with the specified detail message.
021     * @param message the detail message.
022     */
023    public NodeExpectedException(String message)
024    { super(message); }
025
026    /**
027     * Constructs a new exception with the specified detail message and cause.
028     * <BR /><BR /><B>NOTE:</B> The detail message associated with cause is not automatically
029     * incorporated in this exception's detail message.
030     * @param message The detail message (which is saved for later retrieval by the
031     * {@code Throwable.getMessage()} method).
032     * @param cause the cause (which is saved for later retrieval by the {@code Throwable.getCause()}
033     * method).  (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
034     */
035    public NodeExpectedException(String message, Throwable cause)
036    { super(message, cause); }
037
038    /**
039     * Constructs a new exception with the specified cause and a detail message of
040     * {@code (cause==null ? null : cause.toString())} (which typically contains the class and detail
041     * message of cause).
042     * This constructor is useful for exceptions that are little more than wrappers for other throwables.
043     * @param cause The cause (which is saved for later retrieval by the {@code Throwable.getCause()}
044     * method).  (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
045     */
046    public NodeExpectedException(Throwable cause)
047    { super(cause); }
048}