Glossary: Coding with AI Assistants
ValueError
A Python error for a value that has the right type but unsuitable content, such as an unknown SKU or an expired discount code. Code can raise it deliberately, and tests can check for it with `pytest.raises`.