Neos\Flow\Validation\Validator\AbstractValidator::addError PHP Method

addError() protected method

Creates a new validation error object and adds it to $this->errors
protected addError ( string $message, integer $code, array $arguments = [] ) : void
$message string The error message
$code integer The error code (a unix timestamp)
$arguments array Arguments to be replaced in message
return void
    protected function addError($message, $code, array $arguments = [])
    {
        $this->result->addError(new ValidationError($message, $code, $arguments));
    }