# vim: set filencoding=utf8 """ Subversion Client Exceptions @author: Mike Crute (mcrute@gmail.com) @organization: SoftGroup Interactive, Inc. @date: April 20, 2010 """ class SubversionError(Exception): pass class ExecutableError(SubversionError): def __init__(self, return_code, command): self.return_code = return_code self.command = command def __str__(self): return "Command {0!r} returned with non-zero status: {1}".format( self.command, self.return_code) class UnsupportedCommand(SubversionError): pass