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

4 statements  

« prev     ^ index     » next       coverage.py v7.9.2, created at 2025-07-11 18:47 +0000

1"""Custom exception types""" 

2 

3 

4class Error(Exception): 

5 """Base class for all dynapydanitc errors""" 

6 

7 

8class RegistrationError(Error): 

9 """Occurs when a model cannot be registered""" 

10 

11 

12class AmbiguousDiscriminatorValueError(Error): 

13 """Occurs when the discriminator value is ambiguous""" 

14 

15 

16class ConfigurationError(Error): 

17 """Occurs when the user misconfigured a tracking setup"""