exceptions.py 578 B

12345678910111213141516171819202122232425
  1. """celery.exceptions"""
  2. class MaxRetriesExceededError(Exception):
  3. """The tasks max restart limit has been exceeded."""
  4. class RetryTaskError(Exception):
  5. """The task is to be retried later."""
  6. def __init__(self, message, exc, *args, **kwargs):
  7. self.exc = exc
  8. super(RetryTaskError, self).__init__(message, exc, *args, **kwargs)
  9. class NotRegistered(Exception):
  10. """The task is not registered."""
  11. class AlreadyRegistered(Exception):
  12. """The task is already registered."""
  13. class TimeoutError(Exception):
  14. """The operation timed out."""