code: public void addError(AbstractPageError ape)
      {
          assert (ape != null);
  
          // if this is not the error reporter, then find an error reporter above this one.
          if (_containerErrors == null && _errors == null) {
              Tag par = getParent();
              while (par != null) {
                  if (par instanceof org.apache.beehive.netui.tags.IErrorReporter) {
                      _containerErrors = (org.apache.beehive.netui.tags.IErrorReporter) par;
                      break;
                  }
                  par = par.getParent();
              }
          }
  
          // if there is an error reporter, add the error and return
          if (_containerErrors != null) {
              _containerErrors.addError(ape);
              return;
          }
  
          // This is the error reporter.
          if (_errors == null) {
              _errors = new ArrayList();
          }
  
          // add the error and update it
          _errors.add(ape);
          ape.errorNo = _errors.size();
      }
docs: Add an error to the errors being reported by this tag.
  @param ape The AbstractPageError to add