Coverage for /usr/local/lib/python3.12/site-packages/prefect/server/exceptions.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-12-05 13:38 +0000

1from prefect.exceptions import PrefectException 1a

2 

3 

4class ObjectNotFoundError(PrefectException): 1a

5 """ 

6 Error raised by the Prefect REST API when a requested object is not found. 

7 

8 If thrown during a request, this exception will be caught and 

9 a 404 response will be returned. 

10 """ 

11 

12 

13class OrchestrationError(PrefectException): 1a

14 """An error raised while orchestrating a state transition""" 

15 

16 

17class MissingVariableError(PrefectException): 1a

18 """An error raised by the Prefect REST API when attempting to create or update a 

19 deployment with missing required variables. 

20 """ 

21 

22 

23class FlowRunGraphTooLarge(Exception): 1a

24 """Raised to indicate that a flow run's graph has more nodes that the configured 

25 maximum"""