From 9a8773c8d08f981baa10b85b78f0e3cf41170fbc Mon Sep 17 00:00:00 2001 From: Seif Ashraf Date: Tue, 30 Jul 2024 14:19:47 +0300 Subject: [PATCH] Update exception.py Added some exceptions --- gazu/exception.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gazu/exception.py b/gazu/exception.py index 4f58cb6b..778ae474 100644 --- a/gazu/exception.py +++ b/gazu/exception.py @@ -97,3 +97,13 @@ class TaskMustBeADictException(Exception): """ Error raised when a task should be a dict. """ + +class FileDoesntExist(Exception): + """ + Error raised when a file should be existed when we submit a preview. + """ + +class ProjectDoesntExist(Exception): + """ + Error raised when a project isn't available. + """