adds an error
JsonPointer|null $path:
string $message:
string $constraint the constraint/rule that is broken, e.g.: 'minLength':
array $more more array elements to add to the error:
public function addError(?JsonPointer $path, $message, $constraint = '', ?array $more = null);