Validators
The purpose of a Validator is to return either true
or false
.
Validators are used in Effects where they validate if an Effect will actually get executed.
When creating a new Validator, the errorMessage
is left unset. This is because you maybe want to reuse an already existing error message.