Sets the error message for invalid values.
The error message has a string placeholder (%s) for the invalid value.
$this
public function setErrorMessage(string $errorMessage) : static { $this->errorMessage = $errorMessage; $this->setValidator($this->getDefaultValidator()); return $this; }