view hglib/error.py @ 116:661f78f395ea

Added tag 1.0 for changeset 8867908fe8c7
author Matt Mackall <mpm@selenic.com>
date Sat, 01 Jun 2013 17:13:39 -0500
parents 00bb0701323a
children 59cb26bf866e
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 self.err

class ServerError(Exception):
    pass

class ResponseError(ServerError, ValueError):
    pass

class CapabilityError(ServerError):
    pass