Ignore:
Timestamp:
2014-01-06T16:39:45+01:00 (10 years ago)
Author:
Don-vip
Message:

global replacement of e.printStackTrace() by Main.error(e)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java

    r6296 r6643  
    146146        } catch(Exception e) {
    147147            Main.error(tr("Failed to read CSS file ''help-browser.css''. Exception is: {0}", e.toString()));
    148             e.printStackTrace();
     148            Main.error(e);
    149149            return ss;
    150150        } finally {
     
    237237            help.getEditorKit().read(new StringReader(content), document, 0);
    238238        } catch (Exception e) {
    239             e.printStackTrace();
     239            Main.error(e);
    240240        }
    241241        help.setDocument(document);
     
    317317                    return;
    318318                } catch(HelpContentReaderException e2) {
    319                     e2.printStackTrace();
     319                    Main.error(e2);
    320320                    handleHelpContentReaderException(relativeHelpTopic, e2);
    321321                    return;
    322322                }
    323323            } catch(HelpContentReaderException e1) {
    324                 e1.printStackTrace();
     324                Main.error(e1);
    325325                handleHelpContentReaderException(relativeHelpTopic, e1);
    326326                return;
    327327            }
    328328        } catch(HelpContentReaderException e) {
    329             e.printStackTrace();
     329            Main.error(e);
    330330            handleHelpContentReaderException(relativeHelpTopic, e);
    331331            return;
     
    352352            return;
    353353        } catch(HelpContentReaderException e) {
    354             e.printStackTrace();
     354            Main.error(e);
    355355            handleHelpContentReaderException(absoluteHelpTopic, e);
    356356            return;
     
    556556                } catch (BadLocationException e) {
    557557                    Main.warn(tr("Bad location in HTML document. Exception was: {0}", e.toString()));
    558                     e.printStackTrace();
     558                    Main.error(e);
    559559                }
    560560            }
Note: See TracChangeset for help on using the changeset viewer.