ConstraintError
class ConstraintError(code: ErrorCode, **kwargs: Any = {}, extra)
Bases: ValueError
Categories: error
A field-value rule failure, carrying the ErrorCode describing it.
Raised by tabsdatak._api.Rule when a field's text fails one of its
checks. Subclasses ValueError so pydantic collects it like any other
field error: the field location and every sibling field's failure
survive into the enclosing ValidationError, which a bare
TabsdataException would short-circuit. _render_cause reads code
back off the instance so the rendered message carries the specific
code rather than pydantic's generic "Value error" prefix.
Parameters
parameter
**kwargsAnyparameter
extraThe kwargs used to render the message.