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
« prev ^ index » next coverage.py v7.13.5, created at 2026-08-19 05:41 +0800
1"""Domain errors for the storage subsystem.
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"""
8from __future__ import annotations
10from lexigram.contracts.exceptions import LexigramError
13class StorageError(LexigramError):
14 """Base exception for storage errors."""
16 _code: str = "LEX_ERR_STORE_001"
19class StorageUnsupportedOperationError(StorageError):
20 """Raised when the requested operation is not supported by the storage driver."""
22 _code: str = "LEX_ERR_STORE_003"
25__all__ = ["StorageError", "StorageUnsupportedOperationError"]