Last change
on this file since 12599 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
|
Rev | Line | |
---|
[3083] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.plugins;
|
---|
| 3 |
|
---|
[9621] | 4 | /**
|
---|
| 5 | * Exception thrown during plugin download.
|
---|
| 6 | * @since 2817
|
---|
| 7 | */
|
---|
[3083] | 8 | public class PluginDownloadException extends Exception {
|
---|
| 9 |
|
---|
[9621] | 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);
|
---|
[3083] | 17 | }
|
---|
| 18 |
|
---|
[9621] | 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);
|
---|
[3083] | 26 | }
|
---|
| 27 |
|
---|
[9621] | 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);
|
---|
[3083] | 35 | }
|
---|
| 36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.