Add error

@param  string   $message
@param  string[] $text

@return void
@since  1.0.0 added $text
12494
public function addError($message, ...$text): void
    {
        $this->add(self::TYPE_ERROR, $message, ...$text);
    }
1355714
function error($message) {
		$this->CleanUp();
		if (!isset($this->info['error'])) {
			$this->info['error'] = array();
		}
		$this->info['error'][] = $message;
		return $this->info;
	}
1123744
public function error($field, $text = null)
    {
        /** @type Form_Field $form_field */
        $form_field = $this->getElement($field);
        $form_field->displayFieldError($text);
    }
1084419
public function addError($error) {
		if ($error instanceof \Exception) {
			$error = $error->getMessage();
		}

		$this->messages['errors'][] = $error;
		$this->saveSession();
	}
680277
protected function add($type, $message, ...$text): void
    {
        $this->getMessagesStore()[$type][] = Translator::translate($message, ...$text);
    }
934990
public function add($message)
    {
        $this->_messages[] = $this->log_timestamp() . $message . PHP_EOL;
        $this->debug($message);
    }
79718
private function _addError($attr, $msg)
    {
        if (!array_key_exists($attr, $this->errors)) {
            $this->errors[$attr] = array();
        }
        array_push($this->errors[$attr], $msg);
    }
632803
public function error ($message, $isRaw = false, $canHide = true)
		{
			$this->add($message, Notification::ERROR, $isRaw, $canHide);
		}
173456
public function error($message, array $context = array()) {
        $context['fromClass'] = get_called_class();
        foreach ($this->loggersInstances as $logger) {
            $logger->error($message, $context);
        }
    }
159223
protected function setError($code, $message, $sender = null)
    {
        $this->errors[] = new Error($code, $message, $sender ?: debug_backtrace()[1]);
    }
132613
public function addMessageNow($key, $message)
    {
        // Create Array for this key
        if (!isset($this->forNow[$key])) {
            $this->forNow[$key] = [];
        }

        // Push onto the array
        $this->forNow[$key][] = $message;
    }
613320
public void setErrorMessage(String message) {

        m_messageText.setInnerHTML(message);
        addStyleName(formCss().hasError());
        m_hasError = true;
    }
573095
protected function _error($message) {
		if (count($this->_errors) >= 200) {
			array_shift($this->_errors);
		}
		array_push($this->_errors, $message);
	}
1170507
private function add_error( $plugin_name, $file, $message ) {
		$error['plugin_name'] = $plugin_name;
		$error['file']        = $file;
		$error['message']     = $message;
		$this->errors[]       = $error;
	}
1364041
private function error(string $message, $status = 1)
    {
        $this->printer->printError($message);
        exit($status);
    }
539855
public function add($text, $value){
		$this->radios[] = array($text, $value);
		$this->validator->addPossibility($value);
	}
1107834
private function addError($message)
    {
        $errorMessage = sprintf('Line %d, column %d: %s', $this->line, $this->column, $message);
        $this->errors[] = $errorMessage;

        if ($this->options & JSON_PARTIAL_OUTPUT_ON_ERROR) {
            return;
        }

        $this->stack = [];
        $this->step = null;

        throw new EncodingException($errorMessage);
    }