Exemple #1
0
 /** This method returns all the explicitely added errors and the errors of all paths. */
 public List<Throwable> getErrors() {
   List<Throwable> list = new ArrayList<Throwable>();
   list.addAll(errors);
   for (PathWrapper ar : pathWrappers) {
     list.addAll(ar.getErrors());
   }
   return list;
 }
Exemple #2
0
  public String getDebugInfo() {
    String str = debugInfo;
    for (PathWrapper ar : pathWrappers) {
      if (!str.isEmpty()) str += "; ";

      str += ar.getDebugInfo();
    }
    return str;
  }
Exemple #3
0
  /**
   * This method returns true if one of the paths has an error or if the response itself is
   * errornous.
   */
  public boolean hasErrors() {
    if (!errors.isEmpty()) return true;

    for (PathWrapper ar : pathWrappers) {
      if (ar.hasErrors()) return true;
    }

    return false;
  }
Exemple #4
0
  @Override
  public String toString() {
    String str = "";
    for (PathWrapper a : pathWrappers) {
      str += "; " + a.toString();
    }

    if (pathWrappers.isEmpty()) str = "no paths";

    if (!errors.isEmpty()) str += ", main errors: " + errors.toString();

    return str;
  }