001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.plugins;
003
004/**
005 * Exception thrown during plugin download.
006 * @since 2817
007 */
008public class PluginDownloadException extends Exception {
009
010    /**
011     * Constructs a new {@code PluginDownloadException} with the specified detail message and cause.
012     * @param message message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
013     * @param cause cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
014     */
015    public PluginDownloadException(String message, Throwable cause) {
016        super(message, cause);
017    }
018
019    /**
020     * Constructs a new {@code PluginDownloadException} with the specified detail message.
021     * The cause is not initialized, and may subsequently be initialized by a call to {@link #initCause}.
022     * @param message message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
023     */
024    public PluginDownloadException(String message) {
025        super(message);
026    }
027
028    /**
029     * Constructs a new {@code PluginDownloadException} with the specified cause and a detail message of
030     * <tt>(cause==null ? null : cause.toString())</tt> (which typically contains the class and detail message of <tt>cause</tt>).
031     * @param cause cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
032     */
033    public PluginDownloadException(Throwable cause) {
034        super(cause);
035    }
036}