Changeset 6313 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2013-10-07T13:48:08+02:00 (11 years ago)
Author:
Don-vip
Message:

cosmetics in error reporting

Location:
trunk/src/org/openstreetmap/josm
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java

    r6310 r6313  
    105105                        });
    106106                    } catch (InterruptedException ex) {
    107                         Main.warn(ex);
     107                        Main.warn("InterruptedException while displaying error dialog");
    108108                    } catch (InvocationTargetException ex) {
    109109                        Main.warn(ex);
  • trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java

    r6310 r6313  
    336336                    while (busy) CustomConfigurator.class.wait();
    337337                } catch (InterruptedException ex) {
    338                     Main.warn(ex);
     338                    Main.warn("InterruptedException while reading local plugin information");
    339339                }
    340340
  • trunk/src/org/openstreetmap/josm/data/conflict/Conflict.java

    r6069 r6313  
    124124        this.mergedMap = mergedMap;
    125125    }
     126
     127    @Override
     128    public String toString() {
     129        return "Conflict [my=" + my + ", their=" + their + "]";
     130    }
    126131}
  • trunk/src/org/openstreetmap/josm/gui/MapStatus.java

    r6310 r6313  
    221221                            wait(1000);
    222222                        } catch (InterruptedException e) {
    223                             Main.warn(e);
     223                            // Occurs frequently during JOSM shutdown, log set to debug only
     224                            Main.debug("InterruptedException in "+MapStatus.class.getSimpleName());
    224225                        }
    225226                        ms.modifiers = mouseState.modifiers;
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r6310 r6313  
    497497                            Thread.sleep(1000 / fps);
    498498                        } catch (InterruptedException ex) {
    499                             Main.warn(ex);
     499                            Main.warn("InterruptedException in "+NavigatableComponent.class.getSimpleName()+" during smooth scrolling");
    500500                        }
    501501                    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java

    r6267 r6313  
    507507                            future.get();
    508508                        } catch(InterruptedException e) {
    509                             e.printStackTrace();
     509                            Main.warn("InterruptedException in "+getClass().getSimpleName()+" while downloading changeset header");
    510510                        } catch(ExecutionException e){
    511511                            e.printStackTrace();
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetHeaderDownloadTask.java

    r6084 r6313  
    159159                SwingUtilities.invokeAndWait(r);
    160160            } catch(InterruptedException e) {
    161                 e.printStackTrace();
     161                Main.warn("InterruptedException in "+getClass().getSimpleName()+" while updating changeset cache");
    162162            } catch(InvocationTargetException e) {
    163163                Throwable t = e.getTargetException();
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/ChangesetQueryTask.java

    r6296 r6313  
    127127                SwingUtilities.invokeAndWait(r);
    128128            } catch(InterruptedException e) {
    129                 e.printStackTrace();
     129                Main.warn("InterruptedException in "+getClass().getSimpleName()+" while updating changeset cache");
    130130            } catch(InvocationTargetException e) {
    131131                Throwable t = e.getTargetException();
  • trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java

    r6289 r6313  
    573573                    sortRequests(localOnly);
    574574                } catch (InterruptedException e) {
    575                     // Shouldn't happen
     575                    Main.warn("InterruptedException in "+getClass().getSimpleName()+" during WMS request");
    576576                }
    577577            }
     
    930930                    t.join();
    931931                } catch (InterruptedException e) {
    932                     // Shouldn't happen
    933                     e.printStackTrace();
     932                    Main.warn("InterruptedException in "+getClass().getSimpleName()+" while cancelling grabber threads");
    934933                }
    935934            }
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

    r6310 r6313  
    8080                    Thread.sleep(5);
    8181                } catch (InterruptedException e) {
    82                     Main.warn(e);
     82                    Main.warn("InterruptedException in "+getClass().getSimpleName()+" while loading image "+file.getPath());
    8383                }
    8484            }
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java

    r6310 r6313  
    7070            tracker.waitForID(0);
    7171        } catch (InterruptedException e) {
    72             Main.error(" InterruptedException");
     72            Main.error(" InterruptedException while loading thumb");
    7373            return null;
    7474        }
     
    8686                Thread.sleep(10);
    8787            } catch(InterruptedException ie) {
    88                 Main.warn(ie);
     88                Main.warn("InterruptedException while drawing thumb");
    8989            }
    9090        }
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadWmsAlongTrackAction.java

    r6084 r6313  
    7070                                wait(200);
    7171                            } catch (InterruptedException e) {
    72                                 e.printStackTrace();
     72                                Main.warn("InterruptedException in "+getClass().getSimpleName()+" while precaching WMS");
    7373                            }
    7474                        }
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r6310 r6313  
    547547                Thread.sleep(1000);
    548548            } catch (InterruptedException ex) {
    549                 Main.warn(ex);
     549                Main.warn("InterruptedException in "+getClass().getSimpleName()+" during sleep");
    550550            }
    551551        }
  • trunk/src/org/openstreetmap/josm/io/OsmConnection.java

    r6248 r6313  
    5656            Thread.sleep(100);
    5757        } catch (InterruptedException ex) {
     58            Main.warn("InterruptedException in "+getClass().getSimpleName()+" during cancel");
    5859        }
    5960
  • trunk/src/org/openstreetmap/josm/io/imagery/Grabber.java

    r6310 r6313  
    6767                    Thread.sleep(random(1000, 2000));
    6868                } catch (InterruptedException e1) {
    69                     Main.debug(e1.getMessage());
     69                    Main.debug("InterruptedException in "+getClass().getSimpleName()+" during WMS request");
    7070                }
    7171                if(i == maxTries) {
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r6282 r6313  
    687687                return null;
    688688            } catch(InterruptedException e) {
    689                 e.printStackTrace();
     689                Main.warn("InterruptedException in "+PluginHandler.class.getSimpleName()+" while loading locally available plugin information");
    690690                return null;
    691691            }
     
    858858                plugins = buildListOfPluginsToLoad(parent,monitor.createSubTaskMonitor(1, false));
    859859            } catch (ExecutionException e) {
    860                 Main.warn(tr("Failed to download plugin information list"));
     860                Main.warn(tr("Failed to download plugin information list")+": ExecutionException");
    861861                e.printStackTrace();
    862862                // don't abort in case of error, continue with downloading plugins below
    863863            } catch (InterruptedException e) {
    864                 Main.warn(tr("Failed to download plugin information list"));
    865                 e.printStackTrace();
     864                Main.warn(tr("Failed to download plugin information list")+": InterruptedException");
    866865                // don't abort in case of error, continue with downloading plugins below
    867866            }
     
    911910                    return plugins;
    912911                } catch(InterruptedException e) {
    913                     e.printStackTrace();
     912                    Main.warn("InterruptedException in "+PluginHandler.class.getSimpleName()+" while updating plugins");
    914913                    alertFailedPluginUpdate(parent, pluginsToUpdate);
    915914                    return plugins;
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r6310 r6313  
    394394                    Thread.sleep(1);
    395395                } catch (InterruptedException ex) {
    396                     Main.warn(ex);
     396                    Main.warn("InterruptedException in "+Utils.class.getSimpleName()+" while getting clipboard content");
    397397                }
    398398            }
Note: See TracChangeset for help on using the changeset viewer.