From dcbf7ce789edce4042c674ab71fa89a25141084b Mon Sep 17 00:00:00 2001 From: 67au Date: Sat, 11 Dec 2021 03:03:14 +0800 Subject: feat(script): add new aur check Signed-off-by: 67au --- utils/aur/AURUtils/errors.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 utils/aur/AURUtils/errors.py (limited to 'utils/aur/AURUtils/errors.py') diff --git a/utils/aur/AURUtils/errors.py b/utils/aur/AURUtils/errors.py new file mode 100644 index 0000000..2e1fd87 --- /dev/null +++ b/utils/aur/AURUtils/errors.py @@ -0,0 +1,16 @@ +class RPCError(Exception): + + def __init__(self, method: str, message: str): + self.method = method + self.message = message + + def __str__(self): + return f'Method({self.method}): {self.message}' + + +class PackageNotFound(Exception): + pass + + +class MaxRetries(Exception): + pass -- cgit v1.3.1