Need to catch the exception to raise `ValueError` to cause validation failure.