Skip to content

prefect.server.exceptions

FlowRunGraphTooLarge

Bases: Exception

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

Source code in src/prefect/server/exceptions.py
23
24
25
class FlowRunGraphTooLarge(Exception):
    """Raised to indicate that a flow run's graph has more nodes that the configured
    maximum"""

MissingVariableError

Bases: PrefectException

An error raised by the Prefect REST API when attempting to create or update a deployment with missing required variables.

Source code in src/prefect/server/exceptions.py
17
18
19
20
class MissingVariableError(PrefectException):
    """An error raised by the Prefect REST API when attempting to create or update a
    deployment with missing required variables.
    """

ObjectNotFoundError

Bases: PrefectException

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

If thrown during a request, this exception will be caught and a 404 response will be returned.

Source code in src/prefect/server/exceptions.py
 4
 5
 6
 7
 8
 9
10
class ObjectNotFoundError(PrefectException):
    """
    Error raised by the Prefect REST API when a requested object is not found.

    If thrown during a request, this exception will be caught and
    a 404 response will be returned.
    """

OrchestrationError

Bases: PrefectException

An error raised while orchestrating a state transition

Source code in src/prefect/server/exceptions.py
13
14
class OrchestrationError(PrefectException):
    """An error raised while orchestrating a state transition"""