Mercurial > python-hglib
view hglib/error.py @ 183:ae38fb772613
Added tag 2.3 for changeset 0f81ed8e147b
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 03 Jan 2017 17:21:08 -0600 |
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