Changeset 7048 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2014-05-02T02:37:08+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java
r7005 r7048 64 64 importers.add(importer); 65 65 MapView.addLayerChangeListener(importer); 66 } catch ( Throwable t) {67 Main.debug( t.getMessage());66 } catch (Exception e) { 67 Main.debug(e.getMessage()); 68 68 } 69 69 } … … 85 85 exporters.add(exporter); 86 86 MapView.addLayerChangeListener(exporter); 87 } catch ( Throwable t) {88 Main.debug( t.getMessage());87 } catch (Exception e) { 88 Main.debug(e.getMessage()); 89 89 } 90 90 } -
trunk/src/org/openstreetmap/josm/actions/SessionLoadAction.java
r7033 r7048 174 174 } catch (IOException e) { 175 175 handleException(tr("IO Error"), e); 176 } catch (RuntimeException e) { 177 cancel(); 178 throw e; 179 } catch (Error e) { 176 } catch (Exception e) { 180 177 cancel(); 181 178 throw e; -
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r7033 r7048 179 179 try { 180 180 proj = pc.getProjection(); 181 } catch ( Throwable t) {182 String cause = t.getMessage();181 } catch (Exception e) { 182 String cause = e.getMessage(); 183 183 Main.warn("Unable to get projection "+code+" with "+pc + (cause != null ? ". "+cause : "")); 184 184 } -
trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java
r7012 r7048 64 64 try { 65 65 instance.initFromOAuth(Main.parent); 66 } catch ( Throwable t) {67 Main.error( t);66 } catch (Exception e) { 67 Main.error(e); 68 68 // Fall back to preferences if OAuth identification fails for any reason 69 69 instance.initFromPreferences(); … … 278 278 try { 279 279 instance.initFromOAuth(Main.parent); 280 } catch ( Throwable t) {281 Main.error( t);280 } catch (Exception e) { 281 Main.error(e); 282 282 } 283 283 } -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r7026 r7048 562 562 } catch (SecurityException ex) { 563 563 Main.error(ex); 564 } catch ( Throwableex) {564 } catch (Exception ex) { 565 565 BugReportExceptionHandler.handleException(ex); 566 566 } finally { … … 576 576 } catch (SecurityException ex) { 577 577 Main.error(ex); 578 } catch ( Throwableex) {578 } catch (Exception ex) { 579 579 // allow to change most settings even if e.g. a plugin fails 580 580 BugReportExceptionHandler.handleException(ex); -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r7025 r7048 571 571 + "Delete from preferences?</html>", plugin.name, plugin.className); 572 572 } 573 } catch ( Throwablee) {573 } catch (Exception e) { 574 574 Main.error(e); 575 575 }
Note:
See TracChangeset
for help on using the changeset viewer.