Mercurial > python-hglib
view hglib/error.py @ 178:77a5fded9f45
init: add init() to hgclient to allow progress to be reported
The init() command is required as a member of hgclient
so that progress, output and errors from the init() command
can be sent to cbout and cberr call backs.
author | Barry A. Scott <barry@barrys-emacs.org> |
---|---|
date | Fri, 28 Oct 2016 11:45:57 +0100 |
parents | 59cb26bf866e |
children |
line wrap: on
line source
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