Add an error to the errors being reported by this tag.
@param ape The AbstractPageError to add
970718
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();
    }
1295988
public void addError(String text, CSTNode context, SourceUnit source) throws CompilationFailedException {
        addError(new LocatedMessage(text, context, source));
    }
221480
def add_error(attribute, message)
    @errors[attribute] ||= []
    @errors[attribute] = @errors[attribute] << message unless @errors[attribute].include? message
    @errors
  end
1323955
protected void registerTagError(String message, Throwable e)
            throws JspException
    {
        System.err.println("Error in rendering tree:" + message);
        logger.error(message, e);
    }
224631
public void addError(SyntaxException error, SourceUnit source) throws CompilationFailedException {
        addError(Message.create(error, source), error.isFatal());
    }
12494
public function addError($message, ...$text): void
    {
        $this->add(self::TYPE_ERROR, $message, ...$text);
    }
1200479
public void setErrorPage(String error, String uriInContext)
    {
        if (_errorPages == null)
            _errorPages= new HashMap();
        _errorPages.put(error, uriInContext);
    }
333266
@Override
    public void setError(CharSequence error, Drawable icon) {
        super.setError(error, icon);
        lastErrorIcon = icon;

        // if the error is not null, and we are in JB, force
        // the error to show
        if (error != null /* !isFocused() && */) {
            showErrorIconHax(icon);
        }
    }
1327503
def error_add(error)
      message = error
      message = "#{error.class.name}: #{error.message}" if error.is_a?(Exception)
      @state[@server] = { :count => error_count+1, :time => Time.now, :message => message }
    end
204233
def add_errors(errors)
      errors.each do |error|
        if error.respond_to?(:message)
          self.errors.add(error.field, error.message)
        elsif error.respond_to?(:messages)
          error.messages.each do |message|
            self.errors.add(error.field, message)
          end
        end
      end
    end
760536
def _add_error(self, message):
        """"""
        error_line = Result(False, None, message, Directive(""))
        self._suite.addTest(Adapter(self._filename, error_line))
82651
public void addErrorPage(final WebAppErrorPage errorPage) {
		NullArgumentException.validateNotNull(errorPage, "Error page");
		if (errorPage.getErrorCode() == null
				&& errorPage.getExceptionType() == null) {
			throw new NullPointerException(
					"At least one of error type or exception code must be set");
		}
		errorPages.add(errorPage);
	}
334731
def add_error(e, span = nil)
      # Return if we've already logged this exception and it
      # is just propogating up the spans.
      return if e && e.instance_variable_get(:@instana_logged) || @current_span.nil?
      span ||= @current_span
      span.add_error(e)
    end
710905
public void error(Object arg0, Throwable arg1)
    {
        message(ERROR,new Object[]{arg0,arg1},new Frame(1));
    }
724437
function addOnErrorHook () {

		window.addEventListener("error", function(error) {
			error.preventDefault();
			var oErrorOutput = document.createElement("span");
			oErrorOutput.innerText = error.message; // use save API
			oErrorOutput.style.cssText = "position:absolute; top:1rem; left:1rem";
			if (!document.body) {
				document.write("<span></span>"); // add content via document.write to ensure document.body is created;
			}
			document.body.appendChild(oErrorOutput);
		});
	}
682331
public void addTypeBindError(final TypeBindException bindException, final CellPosition address, final String fieldName, final String label) {
        
        this.errors.createFieldConversionError(fieldName, bindException.getBindClass(), bindException.getTargetValue())
            .variables(bindException.getMessageVars())
            .variables("validatedValue", bindException.getTargetValue())
            .address(address)
            .label(label)
            .buildAndAddError();
        
    }
964969
public static void error(Object... message) {
        StringBuilder builder = new StringBuilder(APP_ERROR);
        for (Object object : message) {
            builder.append(object.toString());
        }
        errorStream.println(builder.toString());
    }