Package org.openstreetmap.josm.io

Examples of org.openstreetmap.josm.io.OsmTransferException


                }
            } catch (IOException e) {
                if (canceled)
                    // ignore the exception and return
                    return;
                OsmTransferException ex = new OsmTransferException(e);
                ex.setUrl(url);
                warn(ex);
                return;
            }
        }
View Full Code Here


            Document d = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(connection.getInputStream());
            return OsmServerUserInfoReader.buildFromXML(d);
        } catch(SAXException | ParserConfigurationException e) {
            throw new XmlParsingException(e);
        } catch(IOException e) {
            throw new OsmTransferException(e);
        } catch(OAuthException e) {
            throw new OsmOAuthAuthorizationException(e);
        } finally {
            DefaultAuthenticator.getInstance().setEnabled(authenticatorEnabled);
        }
View Full Code Here

                if (isCanceled())
                    return;
                if (e instanceof OsmTransferException) {
                    rememberException(e);
                } else {
                    rememberException(new OsmTransferException(e));
                }
            }
        }
View Full Code Here

                    setCanceled(true);
                    return;
                } else if (e instanceof OsmTransferException) {
                    rememberException(e);
                } else {
                    rememberException(new OsmTransferException(e));
                }
                DownloadOsmTask.this.setFailed(true);
            }
        }
View Full Code Here

                }
            } catch(Exception e) {
                if (canceled)
                    // ignore exception
                    return;
                OsmTransferException ex = new OsmTransferException(e);
                ex.setUrl(urlString);
                lastException = ex;
            }
        }
View Full Code Here

        try {
            SwingUtilities.invokeAndWait(r);
        } catch(InterruptedException e) {
            lastException = e;
        } catch(InvocationTargetException e) {
            lastException = new OsmTransferException(e.getCause());
        }
    }
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.io.OsmTransferException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.