Coverage for packages/kwai-core/src/kwai_core/domain/exceptions.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2024-01-01 00:00 +0000

1"""Module that defines domain exceptions.""" 

2 

3 

4class UnprocessableException(Exception): 

5 """Raised when a process can't be executed due to the state of the domain.""" 

6 

7 

8class NotAllowedException(Exception): 

9 """Raised when something is not allowed."""