registerConstraint

Registers the provided constraint if it's unsatisfied.

This method shouldn't be called in user code, constrain should be used instead.


Registers the provided constraint violation.

This method shouldn't be called in user code, constrain or validateWith should be used instead.