misc: added forbidden exception

This commit is contained in:
Seaswimmer 2023-12-20 23:50:15 -05:00
parent 5db3f7f1f4
commit ecdca8f0ee
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -4,16 +4,18 @@ class HTTPFailure(Exception):
"""
Raised when an HTTP request fails.
"""
pass
class Forbidden(Exception):
"""
Raised when the authenticated user does not have the ability to do an action.
"""
class PyZiplineError(Exception):
"""
Raised when an error occurs in the PyZipline library.
"""
pass
class FeatureDisabledError(Exception):
"""
Raised when a feature is disabled on the Zipline instance.
"""
pass