Erste Version mit erstem Datenmodell realisiert. Noch kein Template, kein View.
This commit is contained in:
21
venv/lib/python3.12/site-packages/django/tasks/exceptions.py
Normal file
21
venv/lib/python3.12/site-packages/django/tasks/exceptions.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
|
||||
|
||||
class TaskException(Exception):
|
||||
"""Base class for task-related exceptions. Do not raise directly."""
|
||||
|
||||
|
||||
class InvalidTask(TaskException):
|
||||
"""The provided Task is invalid."""
|
||||
|
||||
|
||||
class InvalidTaskBackend(ImproperlyConfigured):
|
||||
"""The provided Task backend is invalid."""
|
||||
|
||||
|
||||
class TaskResultDoesNotExist(TaskException):
|
||||
"""The requested TaskResult does not exist."""
|
||||
|
||||
|
||||
class TaskResultMismatch(TaskException):
|
||||
"""The requested TaskResult is invalid."""
|
||||
Reference in New Issue
Block a user