summaryrefslogtreecommitdiffstats
path: root/third_party/python/python-hglib/hglib/error.py
blob: e0652dc74d25fef5f509932fcd36918c4f9739e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class CommandError(Exception):
    def __init__(self, args, ret, out, err):
        self.args = args
        self.ret = ret
        self.out = out
        self.err = err

    def __str__(self):
        return str((self.ret, self.out.rstrip(), self.err.rstrip()))

class ServerError(Exception):
    pass

class ResponseError(ServerError, ValueError):
    pass

class CapabilityError(ServerError):
    pass