Changeset 10212 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2016-05-15T00:51:10+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r10179 r10212 15 15 import java.io.File; 16 16 import java.io.FilenameFilter; 17 import java.io.IOException; 17 18 import java.net.URL; 18 19 import java.net.URLClassLoader; … … 723 724 + "Delete from preferences?</html>", plugin.name, plugin.className); 724 725 } 725 } catch ( Exception e) {726 } catch (RuntimeException e) { 726 727 pluginLoadingExceptions.put(plugin.name, e); 727 728 Main.error(e); … … 1193 1194 // Check the plugin is a valid and accessible JAR file before installing it (fix #7754) 1194 1195 new JarFile(updatedPlugin).close(); 1195 } catch ( Exception e) {1196 } catch (IOException e) { 1196 1197 if (dowarn) { 1197 1198 Main.warn(tr("Failed to install plugin ''{0}'' from temporary download file ''{1}''. {2}", … … 1221 1222 try { 1222 1223 new JarFile(jar).close(); 1223 } catch ( Exception e) {1224 } catch (IOException e) { 1224 1225 Main.warn(e); 1225 1226 return false; -
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r9983 r10212 273 273 } 274 274 } 275 } catch ( Exception e) {275 } catch (NumberFormatException e) { 276 276 Main.error(e); 277 277 } -
trunk/src/org/openstreetmap/josm/plugins/PluginProxy.java
r10055 r10212 2 2 package org.openstreetmap.josm.plugins; 3 3 4 import java.lang.reflect.InvocationTargetException; 4 5 import java.util.List; 5 6 … … 45 46 } catch (NoSuchMethodException e) { 46 47 Main.debug("Plugin "+plugin+" does not define mapFrameInitialized"); 47 } catch ( Exception e) {48 } catch (InvocationTargetException | IllegalAccessException | IllegalArgumentException e) { 48 49 handlePluginException(e); 49 50 } … … 57 58 Main.debug("Plugin "+plugin+" does not define getPreferenceSetting"); 58 59 return null; 59 } catch ( Exception e) {60 } catch (InvocationTargetException | IllegalAccessException | IllegalArgumentException e) { 60 61 handlePluginException(e); 61 62 } … … 69 70 } catch (NoSuchMethodException e) { 70 71 Main.debug("Plugin "+plugin+" does not define addDownloadSelection"); 71 } catch ( Exception e) {72 } catch (InvocationTargetException | IllegalAccessException | IllegalArgumentException e) { 72 73 handlePluginException(e); 73 74 }
Note: See TracChangeset
for help on using the changeset viewer.