Examples of OsmTransferException


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

Examples of org.openstreetmap.josm.io.OsmTransferException

            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

Examples of org.openstreetmap.josm.io.OsmTransferException

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

Examples of org.openstreetmap.josm.io.OsmTransferException

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

Examples of org.openstreetmap.josm.io.OsmTransferException

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

Examples of org.openstreetmap.josm.io.OsmTransferException

        try {
            SwingUtilities.invokeAndWait(r);
        } catch(InterruptedException e) {
            lastException = e;
        } catch(InvocationTargetException e) {
            lastException = new OsmTransferException(e.getCause());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.