Package org.wikipediacleaner.api

Examples of org.wikipediacleaner.api.APIException


          log.error("Error loading recent changes", e);
        }
      }
    } catch (JDOMException e) {
      log.error("Error loading recent changes", e);
      throw new APIException("Error parsing XML", e);
    }

    return nextStart;
  }
View Full Code Here


      /*return shouldContinue(
          root, "/api/query-continue/abuselog",
          properties);*/
    } catch (JDOMException e) {
      log.error("Error loading abuse filters list", e);
      throw new APIException("Error parsing XML", e);
    }
  }
View Full Code Here

      return shouldContinue(
          root, "/api/query-continue/categories",
          properties);
    } catch (JDOMException e) {
      log.error("Error updating disambiguation status", e);
      throw new APIException("Error parsing XML", e);
    }
  }
View Full Code Here

      XPath xpaContents = XPath.newInstance("/api/parse/text/.");
      Element root = getRoot(properties, ApiRequest.MAX_ATTEMPTS);
      return xpaContents.valueOf(root);
    } catch (JDOMException e) {
      log.error("Error expanding templates", e);
      throw new APIException("Error parsing XML", e);
    }
  }
View Full Code Here

      }

      return result;
    } catch (JDOMException e) {
      log.error("Error retrieving sections", e);
      throw new APIException("Error parsing XML", e);
    }
  }
View Full Code Here

      return shouldContinue(
          root, "/api/query-continue/search",
          properties);
    } catch (JDOMException e) {
      log.error("Error searching", e);
      throw new APIException("Error parsing XML", e);
    }
  }
View Full Code Here

      return shouldContinue(
          root, "/api/query-continue/revisions",
          properties);
    } catch (JDOMException e) {
      log.error("Error loading revisions", e);
      throw new APIException("Error parsing XML", e);
    }
  }
View Full Code Here

      if (!reloadOnly) {
        setText(GT._("Login"));
        LoginResult result = api.login(wiki, username, new String(password), login);
        if (login) {
          if ((result == null) || (!result.isLoginSuccessful())) {
            throw new APIException("Login unsuccessful: " + ((result != null) ? result.toString() : ""));
          }
        }
        User user = api.retrieveUser(wiki, username);
        username = (user != null) ? user.getName() : null;
        wiki.getConnection().setUser(user);
View Full Code Here

          setProperty(name, line, general);
          return true;
        }
      }
    } catch (IOException e) {
      throw new APIException("Error reading WPCleaner configuration: " + e.getMessage());
    }
    return false;
  }
View Full Code Here

  @Override
  public Object construct() {

    // Retrieving errors
    boolean errorLoaded = false;
    APIException exception = null;
    if (selectedAlgorithms != null) {
      for (final CheckErrorAlgorithm algorithm : selectedAlgorithms) {
        try {
         
          if ((algorithm != null) &&
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.api.APIException

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.