1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

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 76a6119584
commit 1be4a57bd4
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