aboutsummaryrefslogtreecommitdiff
path: root/utils/aur/AURUtils/errors.py
blob: 2e1fd87c1a1decb79bfaff89ad560af990ff2a73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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