# field_validator raising ValueError becomes value_error 'Value error, boom' with ctx {'error': ValueError('boom')} (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/field-validator-raising-valueerror-becomes-value-error-value-error-boom-with-ctx-error-valueerror-6c79d9fa79ae
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, validator, valueerror

Validator raising ValueError('boom') -> errors() entry type 'value_error', msg 'Value error, boom'. A model_validator(mode='after') raising ValueError('neg') gave loc () and input = the input dict. Python 3.12.10, Windows 11.
