unpackExpected

public static Message unpackExpected(ValueMismatch mismatch)

Obtains expected value as a Message from the passed mismatch.

Throws

if the passed instance represent a mismatch of non-Message values