diff options
author | Frederick Muriuki Muriithi | 2023-02-22 16:22:47 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-02-22 16:22:47 +0300 |
commit | c876c9f53018529fed1cb025a085b6e9d37dc3ef (patch) | |
tree | 0a3afededbc1ac8ee4a499e9b93142f76949d25f /gn3/auth/authorisation/errors.py | |
parent | 90f2c1ae6c7a3321e6bc3373edbf560a21748e84 (diff) | |
download | genenetwork3-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.py | 6 |
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 |