summaryrefslogtreecommitdiffstats
path: root/girok/server/src/task/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'girok/server/src/task/exceptions.py')
-rw-r--r--girok/server/src/task/exceptions.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/girok/server/src/task/exceptions.py b/girok/server/src/task/exceptions.py
deleted file mode 100644
index cf91a8c..0000000
--- a/girok/server/src/task/exceptions.py
+++ /dev/null
@@ -1,19 +0,0 @@
-
-class InvalidPriorityWindowException(Exception):
- def __init__(self):
- self.detail = "Minimum priority must be less than or equal to maximum priority."
-
-
-class InvalidDateWindowException(Exception):
- def __init__(self, start, end):
- self.detail = f"Start date {start} must be before or equal to end date {end}."
-
-
-class InvalidPriorityPairException(Exception):
- def __init__(self):
- self.detail = f"Min and max priority must be both present or all None."
-
-class TaskNotFoundException(Exception):
- def __init__(self, task_id):
- self.detail = f"Task id {task_id} is not found."
-