/** 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; }
public String getDebugInfo() { String str = debugInfo; for (PathWrapper ar : pathWrappers) { if (!str.isEmpty()) str += "; "; str += ar.getDebugInfo(); } return str; }
/** * 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; }
@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; }