001package Torello.HTML;
002
003/**
004 * Used to identify problems parsing or searching a {@code 'SRC'} attribute from an HTML
005 * <CODE>'&lt;IMG SRC=&#46;&#46;&#46;&gt;</CODE> Tag or any Tag that is expected to contain a
006 * {@code 'SRC'} attribute.
007 */
008public class SRCException extends IllegalArgumentException
009{
010    /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX> */
011    public static final long serialVersionUID = 1;
012
013    /**
014     * Constructs a new exception with the specified detail message.
015     * @param message the detail message.
016     */
017    public SRCException(String message)
018    { super(message); }
019
020    /**
021     * Constructs a new exception with the specified detail message, and cause-chain throwable.
022     * 
023     * <BR /><BR /><DIV CLASS=JDHint>
024     * <B STYLE='color:red;'>Note:</B> The detail message associated with cause is not
025     * automatically incorporated into this exception's detail message.
026     * </DIV>
027     * 
028     * @param message The detail message (which is saved for later retrieval by the
029     * {@code Throwable.getMessage()} method).
030     * 
031     * @param cause the cause (which is saved for later retrieval by the
032     * {@code Throwable.getCause()} method).  (A null value is permitted, and indicates that the
033     * cause is nonexistent or unknown.)
034     */
035    public SRCException(String message, Throwable cause)
036    { super(message); initCause(cause); }
037}