Coverage for src / lexigram / contracts / infra / storage / exceptions.py: 0%

7 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-08-19 05:41 +0800

1"""Domain errors for the storage subsystem. 

2 

3Storage exceptions shared across packages. Per the framework's 

4single-definition rule, exceptions referenced by more than one package 

5live in contracts; ``lexigram-storage`` re-exports them from here. 

6""" 

7 

8from __future__ import annotations 

9 

10from lexigram.contracts.exceptions import LexigramError 

11 

12 

13class StorageError(LexigramError): 

14 """Base exception for storage errors.""" 

15 

16 _code: str = "LEX_ERR_STORE_001" 

17 

18 

19class StorageUnsupportedOperationError(StorageError): 

20 """Raised when the requested operation is not supported by the storage driver.""" 

21 

22 _code: str = "LEX_ERR_STORE_003" 

23 

24 

25__all__ = ["StorageError", "StorageUnsupportedOperationError"]