Source code for leasepool.exceptions
[docs]
class LeasePoolError(Exception):
"""Base exception for leasepool."""
[docs]
class LeasePoolNotStartedError(LeasePoolError):
"""Raised when the manager has not been started."""
[docs]
class LeaseUnavailableError(LeasePoolError):
"""Raised when no executor can be acquired."""
[docs]
class LeaseExpiredError(LeasePoolError):
"""Raised when a lease has expired or has been revoked."""
[docs]
class UnsupportedBackendError(LeasePoolError):
"""Raised when the selected executor backend is unavailable."""