Coverage for src/lexigram/admin/relations/errors.py: 0%

4 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-24 23:18 +0800

1"""Relation manager domain errors.""" 

2 

3from __future__ import annotations 

4 

5from lexigram.contracts.exceptions import DomainError 

6 

7__all__ = ["RelationPersistenceError"] 

8 

9 

10class RelationPersistenceError(DomainError): 

11 """Raised when a relation operation needs persistence it does not have. 

12 

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 """