diff options
| author | 67au <[email protected]> | 2021-12-11 03:03:14 +0800 |
|---|---|---|
| committer | Kunoi Sayami <[email protected]> | 2021-12-11 18:42:40 +0800 |
| commit | dcbf7ce789edce4042c674ab71fa89a25141084b (patch) | |
| tree | 90e60440cd65b13d6ea46e32959b6d14e6b21724 /utils/aur/AURUtils/errors.py | |
| parent | 84a71e61c3a8674c9cee6f30240fb4d86cc1dc04 (diff) | |
feat(script): add new aur check
Signed-off-by: 67au <[email protected]>
Diffstat (limited to 'utils/aur/AURUtils/errors.py')
| -rw-r--r-- | utils/aur/AURUtils/errors.py | 16 |
1 files changed, 16 insertions, 0 deletions
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 |
