Ignore:
Timestamp:
2016-07-24T14:48:47+02:00 (3 years ago)
Author:
Don-vip
Message:

sonar - squid:S1166 - Exception handlers should preserve the original exceptions

Location:
trunk/src/org/openstreetmap/josm/gui/io
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java

    r10179 r10627  
    110110            setAlwaysOnTop(true);
    111111        } catch (SecurityException e) {
    112             Main.warn(tr("Failed to put Credential Dialog always on top. Caught security exception."));
     112            Main.warn(e, tr("Failed to put Credential Dialog always on top. Caught security exception."));
    113113        }
    114114        build();
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java

    r10611 r10627  
    110110                im.setPartiallyIdentified(im.getUserName());
    111111            }
    112             Main.warn(tr("Failed to retrieve user infos for the current JOSM user. Exception was: {0}", e.toString()));
     112            Main.warn(e, tr("Failed to retrieve user infos for the current JOSM user. Exception was: {0}", e.toString()));
    113113        }
    114114    }
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java

    r10611 r10627  
    493493                    currentFuture.get();
    494494                } catch (CancellationException e) {
     495                    Main.trace(e);
    495496                    model.setUploadState(layer, UploadOrSaveState.CANCELED);
    496497                } catch (InterruptedException | ExecutionException e) {
     
    534535                    currentFuture.get();
    535536                } catch (CancellationException e) {
     537                    Main.trace(e);
    536538                    model.setSaveState(layerInfo.getLayer(), UploadOrSaveState.CANCELED);
    537539                } catch (InterruptedException | ExecutionException e) {
  • trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java

    r10611 r10627  
    228228            SwingUtilities.invokeAndWait(r);
    229229        } catch (InterruptedException e) {
     230            Main.trace(e);
    230231            lastException = e;
    231232        } catch (InvocationTargetException e) {
     233            Main.trace(e);
    232234            lastException = new OsmTransferException(e.getCause());
    233235        }
Note: See TracChangeset for help on using the changeset viewer.