# Exceptions


# PrefectSignal

class

prefect.exceptions.PrefectSignal

(message="")[source]

Signals inherit from BaseException and will not be caught by normal error handling. This allows us to bypass typical error handling by raising signals.

See prefect.engine.signals for additional subclasses used for raising state transitions.

Args:

  • message: A message with additional information about the error



# VersionLockMismatchSignal

class

prefect.exceptions.VersionLockMismatchSignal

(message="")[source]

Raised when version locking is enabled and a task run state version sent to Cloud does not match the version expected by the server.

This is not backwards compatible with prefect.utilities.exceptions.VersionLockError

Args:

  • message: A message with additional information about the error



# TaskTimeoutSignal

class

prefect.exceptions.TaskTimeoutSignal

(message="")[source]

Raised when a task reaches a timeout limit

This is not backwards compatible with prefect.utilities.exceptions.TaskTimeoutError

Args:

  • message: A message with additional information about the error



# PrefectException

class

prefect.exceptions.PrefectException

(message="")[source]

The base exception type for all Prefect related exceptions

Args:

  • message: A message with additional information about the error



# ClientError

class

prefect.exceptions.ClientError

(message="")[source]

Raised when there is error in Prefect Client <-> Server communication

Args:

  • message: A message with additional information about the error



# AuthorizationError

class

prefect.exceptions.AuthorizationError

(message="")[source]

Raised when there is an issue authorizing with Prefect Cloud

Args:

  • message: A message with additional information about the error



# FlowStorageError

class

prefect.exceptions.FlowStorageError

(message="")[source]

Raised when there is an error loading a flow from storage

Args:

  • message: A message with additional information about the error



This documentation was auto-generated from commit ffa9a6c
on February 1, 2023 at 18:44 UTC