Coverage for src/lexigram/admin/relations/errors.py: 100%
4 statements
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-21 14:56 +0800
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-21 14:56 +0800
1"""Relation manager domain errors."""
3from __future__ import annotations
5from lexigram.contracts.exceptions import DomainError
7__all__ = ["RelationPersistenceError"]
10class RelationPersistenceError(DomainError):
11 """Raised when a relation operation needs persistence it does not have.
13 Relation managers that perform attach/detach/sync against a pivot
14 table require both a configured ``pivot_table`` and an attached
15 data source (``data_source`` or :meth:`set_data_source`).
16 """