Package com.data2semantics.yasgui.shared.exceptions

Examples of com.data2semantics.yasgui.shared.exceptions.FetchException


        loginResult.setIsLoggedIn(false);
        loginResult.setAuthenticationLink(OpenIdServlet.getAuthenticationURL(openIdURL, appBaseUrl, inDebugMode));
      }
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (JSONException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (SQLException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (IOException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (ParseException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (OpenIdException e) {
      //not logged in
      loginResult.setIsLoggedIn(false);
      loginResult.setAuthenticationLink(OpenIdServlet.getAuthenticationURL(openIdURL, appBaseUrl, inDebugMode));
    }
View Full Code Here


    String prefixes = "";
    try {
      prefixes = PrefixesFetcher.fetch(forceUpdate, new File(getServletContext().getRealPath(CACHE_DIR)));
    } catch (Exception e) {
      LOGGER.log(Level.SEVERE, "exception", e);
      throw new FetchException(PrefixesFetcher.PREFIX_FETCH_EXCEPTION_MSG, e);
    }
    return prefixes;
  }
View Full Code Here

      LOGGER.info("bitly call done");
      shortUrl = url.getShortUrl();
      LOGGER.info("retrieved short url: " + shortUrl);
    } catch (Exception e) {
      LOGGER.log(Level.SEVERE, "exception", e);
      throw new FetchException("Unable to create short url", e);
    }
    return shortUrl;
  }
View Full Code Here

  public String fetchEndpoints(boolean forceUpdate) throws IllegalArgumentException, FetchException {
    String endpoints = "";
    try {
      endpoints = EndpointsFetcher.fetch(forceUpdate, new File(getServletContext().getRealPath(CACHE_DIR)));
    } catch (Exception e) {
      throw new FetchException("unable to fetch endpoints", e);
    }
    return endpoints;
  }
View Full Code Here

    try {
      db = new DbHelper(new File(getServletContext().getRealPath("/")), getThreadLocalRequest());
      db.addBookmarks(bookmark);
    } catch (SQLException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (JSONException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (IOException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (ParseException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } finally {
      if (db != null)
        db.close();
    }
  }
View Full Code Here

    try {
      db = new DbHelper(new File(getServletContext().getRealPath("/")), getThreadLocalRequest());
      bookmarks = db.getBookmarks();
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (JSONException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (SQLException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (IOException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (ParseException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } finally {
      if (db != null)
        db.close();
    }
    return bookmarks;
View Full Code Here

    try {
      db = new DbHelper(new File(getServletContext().getRealPath("/")), getThreadLocalRequest());
      db.updateBookmarks(bookmarks);
    } catch (SQLException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (JSONException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (IOException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (ParseException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } finally {
      if (db != null)
        db.close();
    }
  }
View Full Code Here

    try {
      db = new DbHelper(new File(getServletContext().getRealPath("/")), getThreadLocalRequest());
      db.clearBookmarks(bookmarkIds);
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (JSONException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (SQLException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (IOException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } catch (ParseException e) {
      e.printStackTrace();
      throw new FetchException(e.getMessage(), e);
    } finally {
      if (db != null)
        db.close();
    }
  }
View Full Code Here

  public AutocompletionsInfo getAutocompletionsInfo() throws IllegalArgumentException, FetchException {
    try {
      DbHelper db = new DbHelper(new File(getServletContext().getRealPath("/")), getThreadLocalRequest());
      return db.getAutocompletionInfo();
    } catch (Exception e) {
      throw new FetchException(e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of com.data2semantics.yasgui.shared.exceptions.FetchException

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.