source: josm/trunk/src/org/openstreetmap/josm/plugins/PluginException.java @ 5241

Revision 2817, 1.0 KB checked in by Gubaer, 2 years ago (diff)

fixed #3063: Downloading a plugin yields 3 dialogs at the same time: Downloading plugin / You should restart JOSM / Plugin downloaded
fixed #3628: JOSM blocking itself updating broken plugin
fixed #4187: JOSM deleted random files from disk after start (data loss)
fixed #4199: new version - plugins update vs josm start [should be fixed. Be careful if you have two JOSM instances running. Auto-update of plugins in the second instance will fail because plugin files are locked by the first instance]
fixed #4034: JOSM should auto-download plugin list when it hasn't been downloaded before [JOSM now displays a hint]

fixed: splash screen showing again even if plugins are auto-updated
new: progress indication integrated in splash screen
new: cancelable, asynchronous download of plugins from preferences
new: cancelable, asynchronous download of plugin list from plugin download sites
new: asynchronous loading of plugin information, launch of preferences dialog accelerated
refactored: clean up, documentation of plugin management code (PluginHandler)

  • Property svn:eol-style set to native
Line 
1// License: GPL. Copyright 2007 by Immanuel Scholz and others
2package org.openstreetmap.josm.plugins;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6/**
7 * Exception that wraps any exception thrown by plugins. It is used in the JOSM main system
8 * and there is no particular reason to use this within the plugin itself (although there
9 * is also no reason against this.. ;)
10 *
11 * @author Immanuel.Scholz
12 */
13public class PluginException extends Exception {
14    public final PluginProxy plugin;
15    public final String name;
16
17    public PluginException(PluginProxy plugin, String name, Throwable cause) {
18        super(tr("An error occurred in plugin {0}", name), cause);
19        this.plugin = plugin;
20        this.name = name;
21    }
22
23    public PluginException(String name, String message) {
24        super(message);
25        this.plugin = null;
26        this.name = name;
27    }
28
29    public PluginException(String name, Throwable cause) {
30        super(tr("An error occurred in plugin {0}", name), cause);
31        this.plugin = null;
32        this.name = name;
33    }
34}
Note: See TracBrowser for help on using the repository browser.