expectedNotEmpty

public static ValueMismatch expectedNotEmpty(String expected, int version)

Creates a ValueMismatch for a command that wanted to clear a string value, but discovered that the field is already empty.

Return

new ValueMismatch instance

Parameters

expected

the value of the field that the command wanted to clear

version

the version of the entity in which the mismatch is discovered