view hglib/error.py @ 181:cdb5a320d2bf

client: wrap long lines at 80 chars
author Yuya Nishihara <yuya@tcha.org>
date Wed, 19 Oct 2016 00:03:44 +0900
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