view hglib/error.py @ 102:cc2b7540fa2b 0.2

tests: don't set the time zone There seems to be no need and it misbehaves on Windows.
author Idan Kamara <idankk86@gmail.com>
date Wed, 18 Jan 2012 00:39:25 +0200
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