Check value against problem and return it unchanged when it is valid. Otherwise throw a LebensmittelwarnungValidationError with the message Invalid <name>: <reason>.
value
problem
Invalid <name>: <reason>
Check
valueagainstproblemand return it unchanged when it is valid. Otherwise throw a LebensmittelwarnungValidationError with the messageInvalid <name>: <reason>.