Skip to content

Commit

Permalink
Create QueueDoesNotExistError
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jun 17, 2021
1 parent f9713fe commit 08748d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/webqueue2api/parser/errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
class ItemDoesNotExistError(Exception):
def __init__(self, path: str):
self.message = f"File {path} not found."
super().__init__(self.message)

class QueueDoesNotExistError(Exception):
def __init__(self, path: str):
self.message = f"Directory {path} not found."
super().__init__(self.message)

0 comments on commit 08748d9

Please sign in to comment.