001package Torello.HTML.Tools.NewsSite;
002
003/**
004 * Thrown by the <CODE><B>'Pause'</B></CODE> interface, if any of the methods inside an 
005 * implementation of interface <CODE>'Pause'</CODE> need to throw an exception - then that
006 * exception <B>must be wraped</B> by this <I>(unchecked, runtime)</I> exception.
007 * 
008 * <BR /><BR /><EMBED CLASS='external-html' DATA-FILE-ID=PAUSE_EX>
009 */
010public class PauseException extends RuntimeException
011{
012    /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX>  */
013    public static final long serialVersionUID = 1;
014
015    /** Constructs a {@code PauseException} with no detail message. */
016    public PauseException()
017    { super(); }
018
019    /**
020     * Constructs a {@code PauseException} with the specified detail message.
021     * @param message the detail message.
022     */
023    public PauseException(String message)
024    { super(message); }
025
026    /**
027     * Constructs a new exception with the specified detail message and cause.
028     * 
029     * <BR /><BR /><B CLASS=JDDescLabel>NOTE:</B>
030     * 
031     * <BR /><BR />The detail message associated with cause is not automatically incorporated into
032     * this exception's detail message.
033     * 
034     * @param message The detail message (which is saved for later retrieval by the
035     * {@code Throwable.getMessage()} method).
036     * 
037     * @param cause the cause (which is saved for later retrieval by the
038     * {@code Throwable.getCause()} method).  (A null value is permitted, and indicates that the
039     * cause is nonexistent or unknown.)
040     */
041    public PauseException(String message, Throwable cause)
042    { super(message, cause); }
043
044    /**
045     * Constructs a new exception with the specified cause and a detail message of
046     * {@code (cause==null ? null : cause.toString())} (which typically contains the class and
047     * detail message of cause).
048     * 
049     * <BR /><BR />This constructor is useful for exceptions that are little more than wrappers for
050     * other throwables.
051     * 
052     * @param cause The cause (which is saved for later retrieval by the
053     * {@code Throwable.getCause()} method).  (A null value is permitted, and indicates that the
054     * cause is nonexistent or unknown.)
055     */
056    public PauseException(Throwable cause)
057    { super(cause); }
058}