Closes #6345: Introduce PermissionsViolation exception for use in generic views

This commit is contained in:
jeremystretch
2021-07-01 15:33:39 -04:00
parent b03a0a9a8f
commit e503cc9f56
2 changed files with 27 additions and 17 deletions

View File

@@ -9,6 +9,14 @@ class AbortTransaction(Exception):
pass
class PermissionsViolation(Exception):
"""
Raised when an operation was prevented because it would violate the
allowed permissions.
"""
pass
class RQWorkerNotRunningException(APIException):
"""
Indicates the temporary inability to enqueue a new task (e.g. custom script execution) because no RQ worker