Bluz\Validator\Exception\ValidatorException::setError PHP Method

setError() public method

Set error by Key
public setError ( string $key, string $error ) : void
$key string
$error string
return void
    public function setError($key, $error)
    {
        $this->errors[$key] = $error;
    }