File: exceptions.py

package info (click to toggle)
python-django-tasks 0.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 256 kB
  • sloc: python: 1,703; sh: 5; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from django.core.exceptions import ImproperlyConfigured


class TaskException(Exception):  # noqa: N818
    """Base class for task-related exceptions. Do not raise directly."""


class InvalidTaskError(TaskException):
    """
    The provided Task is invalid.
    """


class InvalidTaskBackendError(ImproperlyConfigured):
    pass


class TaskResultDoesNotExist(TaskException):
    pass


class TaskResultMismatch(TaskException):
    pass