A string specifying the level of the validation.
The possible values in order of increasing strictness
are 'class', 'valid', 'consistent' and 'complete'.
x_name
A string of the name of object x or NULL.
Value
NULL, invisibly. Called for the side effect of throwing an error
if the condition is not met.