aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth/authorisation/errors.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-02-22 16:22:47 +0300
committerFrederick Muriuki Muriithi2023-02-22 16:22:47 +0300
commitc876c9f53018529fed1cb025a085b6e9d37dc3ef (patch)
tree0a3afededbc1ac8ee4a499e9b93142f76949d25f /gn3/auth/authorisation/errors.py
parent90f2c1ae6c7a3321e6bc3373edbf560a21748e84 (diff)
downloadgenenetwork3-c876c9f53018529fed1cb025a085b6e9d37dc3ef.tar.gz
auth: List data not linked to any group.
Diffstat (limited to 'gn3/auth/authorisation/errors.py')
-rw-r--r--gn3/auth/authorisation/errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gn3/auth/authorisation/errors.py b/gn3/auth/authorisation/errors.py
index 99ee55d..2116ead 100644
--- a/gn3/auth/authorisation/errors.py
+++ b/gn3/auth/authorisation/errors.py
@@ -15,6 +15,12 @@ class NotFoundError(AuthorisationError):
"""Raised whenever we try fetching (a/an) object(s) that do(es) not exist."""
error_code: int = 404
+class InvalidData(AuthorisationError):
+ """
+ Exception if user requests invalid data
+ """
+ error_code: int = 400
+
class InconsistencyError(AuthorisationError):
"""
Exception raised due to data inconsistencies