Check if value is in the given enum. If not, stops with an error.
Source: R/validation-enum.R
validateEnumValue.RdCheck if value is in the given enum. If not, stops with an error.