001package Torello.JavaDoc.SyntaxHiLite;
002
003/**
004 * This error is thrown on errors with the {@link HiLiteCache} interface, and its implementation 
005 * classes.
006 */
007public class CacheError extends Error
008{
009    /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX>  */
010    public static final long serialVersionUID = 1;
011
012    /** Constructs a new error with null as its detail message. */
013    public CacheError()
014    { super(); }
015
016    /**
017     * Constructs a new error with the specified detail message.
018     *
019     * @param message The detail message. The detail message is saved for later retrieval by the
020     * {@code Throwable.getMessage()} method.
021     */
022    public CacheError(String message)
023    { super(message); }
024
025    /**
026     * Constructs a new error with the specified detail message and cause.
027     * 
028     * <BR /><BR /><DIV CLASS=JDHint>
029     * <B STYLE='color:red;'>Note:</B> The detail message associated with cause is not
030     * automatically incorporated into this exception's detail message.
031     * </DIV>
032     * 
033     * @param message The detail message. The detail message is saved for later retrieval by
034     * the {@code Throwable.getMessage()} method.
035     *
036     * @param cause The cause (which is saved for later retrieval by the
037     * {@code Throwable.getCause()} method). (A null value is permitted, and indicates that the
038     * cause is nonexistent or unknown.)
039     */
040    public CacheError(String message, Throwable cause)
041    { super(message, cause); }
042
043    /**
044     * Constructs a new error with the specified cause and a detail message of 
045     * {@code (cause==null ? null : cause.toString())} (which typically contains the class and
046     * detail message of cause).
047     *
048     * @param cause  The cause which is saved for later retrieval by the
049     * {@code Throwable.getCause()} method).
050     */
051    public CacheError(Throwable cause)
052    { super(cause); }
053}