view hglib/error.py @ 140:9c4f52467208

tests: disable largefiles test in update This never really worked because reposetup isn't called when we add an extension after the client session has started.
author Matt Mackall <mpm@selenic.com>
date Sat, 17 Jan 2015 17:54:40 -0800
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