Coverage for src/metaclass_registry/exceptions.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.17.3, created at 2026-11-17 00:39 +0000

1"""Exceptions for metaclass-registry.""" 

2 

3 

4class RegistryError(Exception): 

5 """Base exception for registry-related errors.""" 

6 

7 pass 

8 

9 

10class DiscoveryError(RegistryError): 

11 """Exception raised when plugin discovery fails.""" 

12 

13 pass 

14 

15 

16class CacheError(RegistryError): 

17 """Exception raised when cache operations fail.""" 

18 

19 pass 

20 

21 

22class DuplicateRegistryKeyError(RegistryError): 

23 """Raised when a registry key that names one class is claimed by another.""" 

24 

25 pass