From 08748d92125e0c3956c5ffde5a48fd097177c851 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Thu, 17 Jun 2021 11:43:22 -0400 Subject: [PATCH] Create QueueDoesNotExistError --- src/webqueue2api/parser/errors.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/webqueue2api/parser/errors.py b/src/webqueue2api/parser/errors.py index 34bc912..ef1ac48 100644 --- a/src/webqueue2api/parser/errors.py +++ b/src/webqueue2api/parser/errors.py @@ -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) \ No newline at end of file