Coverage for src/qdrant_loader/core/state/exceptions.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.8.2, created at 2025-06-04 05:50 +0000

1""" 

2Custom exceptions for state management. 

3""" 

4 

5 

6class StateError(Exception): 

7 """Base exception for state management errors.""" 

8 

9 

10class DatabaseError(StateError): 

11 """Exception raised for database-related errors.""" 

12 

13 

14class MigrationError(StateError): 

15 """Exception raised for database migration errors.""" 

16 

17 

18class StateNotFoundError(StateError): 

19 """Exception raised when a requested state is not found.""" 

20 

21 

22class StateValidationError(StateError): 

23 """Exception raised when state validation fails.""" 

24 

25 

26class ConcurrentUpdateError(StateError): 

27 """Exception raised when concurrent updates are detected.""" 

28 

29 

30class ChangeDetectionError(StateError): 

31 """Base exception for change detection errors.""" 

32 

33 

34class InvalidDocumentStateError(ChangeDetectionError): 

35 """Raised when a document state is invalid.""" 

36 

37 

38class MissingMetadataError(ChangeDetectionError): 

39 """Raised when required metadata is missing."""