Debian Codegraph @

third_party/python/python-hglib/hglib/error.py

raw
1 class CommandError(Exception):
2 def __init__(self, args, ret, out, err):
3 self.args = args
4 self.ret = ret
5 self.out = out
6 self.err = err
7
8 def __str__(self):
9 return str((self.ret, self.out.rstrip(), self.err.rstrip()))
10
11 class ServerError(Exception):
12 pass
13
14 class ResponseError(ServerError, ValueError):
15 pass
16
17 class CapabilityError(ServerError):
18 pass