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

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

Location:
trunk/src/org/openstreetmap/josm/io/imagery
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/Grabber.java

    r6313 r6643  
    7070                }
    7171                if(i == maxTries) {
    72                     e.printStackTrace();
     72                    Main.error(e);
    7373                    request.finish(State.FAILED, null);
    7474                }
  • trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java

    r6552 r6643  
    1515import javax.xml.parsers.SAXParserFactory;
    1616
     17import org.openstreetmap.josm.Main;
    1718import org.openstreetmap.josm.data.imagery.ImageryInfo;
    1819import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryBounds;
     
    2122import org.openstreetmap.josm.io.MirroredInputStream;
    2223import org.openstreetmap.josm.io.UTFInputStreamReader;
    23 import org.openstreetmap.josm.tools.Utils;
    2424import org.xml.sax.Attributes;
    2525import org.xml.sax.InputSource;
     
    5959            throw e;
    6060        } catch (ParserConfigurationException e) {
    61             e.printStackTrace(); // broken SAXException chaining
     61            Main.error(e); // broken SAXException chaining
    6262            throw new SAXException(e);
    6363        }
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSGrabber.java

    r6248 r6643  
    7272
    7373        } catch(Exception e) {
    74             e.printStackTrace();
    75             throw new Exception(e.getMessage() + "\nImage couldn't be fetched: " + (url != null ? url.toString() : ""));
     74            Main.error(e);
     75            throw new Exception(e.getMessage() + "\nImage couldn't be fetched: " + (url != null ? url.toString() : ""), e);
    7676        }
    7777    }
Note: See TracChangeset for help on using the changeset viewer.