expectedDefault

protected ValueMismatch expectedDefault(Message actual, Message newValue)

Creates ValueMismatch for the case of discovering a non-default value when the default value was expected by a command.

Return

new ValueMismatch instance

Parameters

actual

the value discovered instead of the default value

newValue

the new value requested in the command