Changeset 11620 in josm for trunk/src/org
- Timestamp:
- 2017-02-25T20:47:05+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
r11343 r11620 195 195 double zoomLvl = Double.parseDouble(zm.getText()); 196 196 url.setText(OsmUrlToBounds.getURL(dlat, dlon, (int) zoomLvl)); 197 } catch (NumberFormatException x) {198 Main.debug( x.getMessage());197 } catch (NumberFormatException e) { 198 Main.debug(e.getMessage()); 199 199 } 200 200 } -
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r11498 r11620 282 282 .append(paramCleanup(entry.getValue().getValue().toString())).append('\n'); 283 283 } 284 } catch (Exception x) {285 Main.error( x);284 } catch (Exception ex) { 285 Main.error(ex); 286 286 } 287 287 -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r11557 r11620 349 349 350 350 oldMousePos = ms.mousePos; 351 } catch (ConcurrentModificationException x) {352 Main.warn( x);351 } catch (ConcurrentModificationException ex) { 352 Main.warn(ex); 353 353 } finally { 354 354 if (ds != null) { -
trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java
r10378 r11620 141 141 try { 142 142 values[i] = Double.parseDouble(latlon[i].getText()); 143 } catch (NumberFormatException x) {143 } catch (NumberFormatException ex) { 144 144 return null; 145 145 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r11553 r11620 291 291 data.storageFile = sel; 292 292 293 } catch (SAXException x) {294 Main.error( x);293 } catch (SAXException ex) { 294 Main.error(ex); 295 295 JOptionPane.showMessageDialog( 296 296 Main.parent, 297 tr("Error while parsing {0}", sel.getName())+": "+ x.getMessage(),297 tr("Error while parsing {0}", sel.getName())+": "+ex.getMessage(), 298 298 tr("Error"), 299 299 JOptionPane.ERROR_MESSAGE 300 300 ); 301 301 return; 302 } catch (IOException x) {303 Main.error( x);302 } catch (IOException ex) { 303 Main.error(ex); 304 304 JOptionPane.showMessageDialog( 305 305 Main.parent, 306 tr("Could not read \"{0}\"", sel.getName())+'\n'+ x.getMessage(),306 tr("Could not read \"{0}\"", sel.getName())+'\n'+ex.getMessage(), 307 307 tr("Error"), 308 308 JOptionPane.ERROR_MESSAGE -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java
r11037 r11620 452 452 dirExif = metadata.getFirstDirectoryOfType(ExifIFD0Directory.class); 453 453 dirGps = metadata.getFirstDirectoryOfType(GpsDirectory.class); 454 } catch (CompoundException | IOException p) {455 Main.warn( p);454 } catch (CompoundException | IOException ex) { 455 Main.warn(ex); 456 456 setExifCoor(null); 457 457 setPos(null); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java
r11535 r11620 150 150 try { 151 151 Thread.sleep(10); 152 } catch (InterruptedException ie) {152 } catch (InterruptedException e) { 153 153 Main.warn("InterruptedException while drawing thumb"); 154 154 Thread.currentThread().interrupt(); -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OsmApiUrlInputPanel.java
r10611 r11620 155 155 try { 156 156 OsmApi.getOsmApi().initialize(null); 157 } catch (OsmTransferCanceledException | OsmApiInitializationException x) {158 Main.warn( x);157 } catch (OsmTransferCanceledException | OsmApiInitializationException ex) { 158 Main.warn(ex); 159 159 } 160 160 } -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Text.java
r11452 r11620 141 141 aibutton.addActionListener(e -> auto_increment_selected = buttonvalue); 142 142 pnl.add(aibutton, GBC.std()); 143 } catch (ParseException x) {143 } catch (ParseException ex) { 144 144 Main.error("Cannot parse auto-increment value of '" + ai + "' into an integer"); 145 145 } -
trunk/src/org/openstreetmap/josm/io/FileWatcher.java
r11589 r11620 113 113 try { 114 114 key = watcher.take(); 115 } catch (InterruptedException x) {115 } catch (InterruptedException ex) { 116 116 Thread.currentThread().interrupt(); 117 117 return; -
trunk/src/org/openstreetmap/josm/io/GpxExporter.java
r11553 r11620 205 205 new GpxWriter(fo).write(gpxData); 206 206 fo.flush(); 207 } catch (IOException x) {208 Main.error( x);209 JOptionPane.showMessageDialog(Main.parent, tr("Error while exporting {0}:\n{1}", fn, x.getMessage()),207 } catch (IOException ex) { 208 Main.error(ex); 209 JOptionPane.showMessageDialog(Main.parent, tr("Error while exporting {0}:\n{1}", fn, ex.getMessage()), 210 210 tr("Error"), JOptionPane.ERROR_MESSAGE); 211 211 } -
trunk/src/org/openstreetmap/josm/io/NameFinder.java
r11452 r11620 238 238 data.add(currentResult); 239 239 } 240 } catch (NumberFormatException x) {241 Main.error( x); // SAXException does not chain correctly242 throw new SAXException( x.getMessage(),x);243 } catch (NullPointerException x) {244 Main.error( x); // SAXException does not chain correctly245 throw new SAXException(tr("Null pointer exception, possibly some missing tags."), x);240 } catch (NumberFormatException ex) { 241 Main.error(ex); // SAXException does not chain correctly 242 throw new SAXException(ex.getMessage(), ex); 243 } catch (NullPointerException ex) { 244 Main.error(ex); // SAXException does not chain correctly 245 throw new SAXException(tr("Null pointer exception, possibly some missing tags."), ex); 246 246 } 247 247 } -
trunk/src/org/openstreetmap/josm/io/NmeaReader.java
r11553 r11620 415 415 return true; 416 416 417 } catch (RuntimeException x) {417 } catch (RuntimeException ex) { 418 418 // out of bounds and such 419 Main.debug( x);419 Main.debug(ex); 420 420 ps.malformed++; 421 421 ps.pWp = null; -
trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpServer.java
r10627 r11620 103 103 Socket request = server.accept(); 104 104 RequestProcessor.processRequest(request); 105 } catch (SocketException se) {105 } catch (SocketException e) { 106 106 if (!server.isClosed()) { 107 Main.error( se);107 Main.error(e); 108 108 } else { 109 109 // stop the thread automatically if server is stopped -
trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpsServer.java
r11312 r11620 417 417 } 418 418 RequestProcessor.processRequest(request); 419 } catch (SocketException se) {419 } catch (SocketException e) { 420 420 if (!server.isClosed()) { 421 Main.error( se);421 Main.error(e); 422 422 } 423 423 } catch (IOException ioe) { -
trunk/src/org/openstreetmap/josm/io/session/SessionReader.java
r11381 r11620 602 602 zipFile = new ZipFile(sessionFile, StandardCharsets.UTF_8); 603 603 return getZipInputStream(zipFile); 604 } catch (ZipException ze) {605 throw new IOException( ze);604 } catch (ZipException ex) { 605 throw new IOException(ex); 606 606 } 607 607 } else { -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r11399 r11620 1227 1227 parser.parse(new InputSource(is)); 1228 1228 } 1229 } catch (SAXReturnException r) {1230 Main.trace( r);1231 return r.getResult();1229 } catch (SAXReturnException e) { 1230 Main.trace(e); 1231 return e.getResult(); 1232 1232 } catch (IOException | SAXException | ParserConfigurationException e) { 1233 1233 Main.warn("Parsing " + base + fn + " failed:\n" + e); -
trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
r11329 r11620 41 41 url = Utils.decodeUrl(url); 42 42 } 43 } catch (IllegalArgumentException x) {44 Main.error( x);43 } catch (IllegalArgumentException ex) { 44 Main.error(ex); 45 45 } 46 46 Bounds b = parseShortLink(url); … … 82 82 z == null ? 18 : Integer.parseInt(z)); 83 83 } 84 } catch (NumberFormatException | NullPointerException | ArrayIndexOutOfBoundsException x) {85 Main.error( x);84 } catch (NumberFormatException | NullPointerException | ArrayIndexOutOfBoundsException ex) { 85 Main.error(ex); 86 86 } 87 87 return b; -
trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java
r11288 r11620 50 50 try { 51 51 fact = DatatypeFactory.newInstance(); 52 } catch (DatatypeConfigurationException ce) {53 Main.error( ce);52 } catch (DatatypeConfigurationException e) { 53 Main.error(e); 54 54 } 55 55 XML_DATE = fact; 56 56 } 57 57 58 /** 59 * Constructs a new {@code DateUtils}. 60 */ 58 61 protected DateUtils() { 59 62 // Hide default constructor for utils classes
Note:
See TracChangeset
for help on using the changeset viewer.