Skip to content

Commit

Permalink
Update exception.py
Browse files Browse the repository at this point in the history
Added some exceptions
  • Loading branch information
seifibrahim32 authored Jul 30, 2024
1 parent 96981e2 commit 9a8773c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gazu/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

0 comments on commit 9a8773c

Please sign in to comment.