aboutsummaryrefslogtreecommitdiff
path: root/utils/aur/AURUtils/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/aur/AURUtils/errors.py')
-rw-r--r--utils/aur/AURUtils/errors.py16
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