Let's just use `invalidMessage()` instead of raising an exception.