Coverage for src/case_router/errors.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-10-12 18:59 +0000

1"""Errors the API turns into HTTP responses.""" 

2 

3 

4class UnknownTenant(LookupError): 

5 """No tenant with this id (404).""" 

6 

7 

8class CaseNotFound(LookupError): 

9 """No case with this id for this tenant (404). Other tenants' cases count as missing.""" 

10 

11 

12class CaseAlreadyClosed(Exception): 

13 """The case was closed before (409)."""