source: josm/trunk/src/org/openstreetmap/josm/plugins/PluginDownloadException.java@ 12517

Last change on this file since 12517 was 9621, checked in by Don-vip, 8 years ago

see #10588 - properly manage exception feedback in PluginDownloadTask. Removes a Findbugs warning

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.plugins;
3
4/**
5 * Exception thrown during plugin download.
6 * @since 2817
7 */
8public class PluginDownloadException extends Exception {
9
10 /**
11 * Constructs a new {@code PluginDownloadException} with the specified detail message and cause.
12 * @param message message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
13 * @param cause cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
14 */
15 public PluginDownloadException(String message, Throwable cause) {
16 super(message, cause);
17 }
18
19 /**
20 * Constructs a new {@code PluginDownloadException} with the specified detail message.
21 * The cause is not initialized, and may subsequently be initialized by a call to {@link #initCause}.
22 * @param message message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
23 */
24 public PluginDownloadException(String message) {
25 super(message);
26 }
27
28 /**
29 * Constructs a new {@code PluginDownloadException} with the specified cause and a detail message of
30 * <tt>(cause==null ? null : cause.toString())</tt> (which typically contains the class and detail message of <tt>cause</tt>).
31 * @param cause cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
32 */
33 public PluginDownloadException(Throwable cause) {
34 super(cause);
35 }
36}
Note: See TracBrowser for help on using the repository browser.