MappingConstraint returns a tuple of the key and the error message.