diff --git a/src/errors/DatabaseErrors.py b/src/errors/DatabaseErrors.py new file mode 100644 index 0000000..ff332ac --- /dev/null +++ b/src/errors/DatabaseErrors.py @@ -0,0 +1,10 @@ + +class NoResultError(Exception): + def __init__(self,message): + self.message = f"The query: {message} returned no results" + super().__init__(self.message) + +class AppPresentError(Exception): + def __init__(self, message): + self.message = f"The app {message} is already present in the database" + super().__init__(self.message) \ No newline at end of file