001package Torello.Browser;
002
003/** Convert Java's {@code ExecutionException} into an unchecked {@code RuntimeException}. */
004public class UncheckedExecutionException extends RuntimeException
005{
006    /** <EMBED CLASS='external-html' DATA-FILE-ID=SVUIDEX>  */
007    public static final long serialVersionUID = 1;
008    
009    /** Constructs a {@code UncheckedExecutionException} with no detail message. */
010    public UncheckedExecutionException()
011    { super(); }
012
013    /**
014     * Constructs a {@code UncheckedExecutionException} with the specified detail message.
015     * @param message the detail message.
016     */
017    public UncheckedExecutionException(String message)
018    { super(message); }
019
020    /**
021     * Constructs a new {@code UncheckedExecutionException} with the specified detail message and cause.
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 UncheckedExecutionException(String message, Throwable cause)
036    { super(message, cause); }
037
038    /**
039     * Constructs a new {@code UncheckedExecutionException} with the specified cause and a detail message of
040     * {@code (cause==null ? null : cause.toString())} (which typically contains the class and
041     * detail message of cause).  This constructor is useful for exceptions that are little more
042     * than wrappers for other throwables.
043     * 
044     * @param cause The cause (which is saved for later retrieval by the
045     * {@code Throwable.getCause()} method).  (A null value is permitted, and indicates that the
046     * cause is nonexistent or unknown.)
047     */
048    public UncheckedExecutionException(Throwable cause)
049    { super(cause); }
050}