Coverage for src/counter_os/domain/exceptions.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.17.5, created at 2026-11-29 05:31 -0600

1class DomainError(Exception): 

2 """Base class for all domain-specific exceptions""" 

3 

4 pass 

5 

6 

7class CountCannotBeNegative(DomainError, ValueError): 

8 """Count value object cannot be constructed using a negative integer""" 

9 

10 pass 

11 

12 

13class CountCannotBeGreaterThan100(DomainError, ValueError): 

14 """Count value object cannot be constructed with a number greater than 100"""