defaultViolationMessage

open override var defaultViolationMessage: String

The default message for failed constraints.

Built-in constraints always override the default message:

Validator<String> {
isNotEmpty() // Message: Must not be empty
}

However, inline constraints use the default message if not overriden:

Validator<Any> {
constrain { false } // Message: The value is invalid
}

You can always override the message by using otherwise.