Skip to main content
GuideServerConfigure and deploy Tabsdata servers on your machine.TutorialsConfigure data integration workflows within a running Tabsdata server.Advanced TutorialsBuild end-to-end workflows between two specific systems.API ReferenceCLI ReferenceRelease Notes
Version: 2.0.1

ConstraintError

class
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

The ErrorCode for the rule that failed.

parameter
**kwargsAny

parameter
extra

The kwargs used to render the message.