From ecdca8f0ee2ae3ca809b0cbbf4c6bb1340dea445 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 20 Dec 2023 23:50:15 -0500 Subject: [PATCH] misc: added forbidden exception --- pyzipline/exceptions.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pyzipline/exceptions.py b/pyzipline/exceptions.py index 6ef9711..a889c2b 100644 --- a/pyzipline/exceptions.py +++ b/pyzipline/exceptions.py @@ -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