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

Last change on this file since 504 was 298, checked in by imi, 17 years ago
  • added license description to head of each source file
File size: 745 bytes
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 RuntimeException {
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 occoured in plugin {0}", name), cause);
19 this.plugin = plugin;
20 this.name = name;
21 }
22}
Note: See TracBrowser for help on using the repository browser.