Mercurial > kallithea
view rhodecode/lib/vcs/exceptions.py @ 3574:000653f7cdf9 beta
avoid displaying repr of internal classes in user facing messages
The context of the message will tell where the problem was and there is no reason to show
... does not exist for this repository <MercurialRepository at /home/marcink/repos/rhodecode>
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 21 Mar 2013 11:17:01 +0100 |
parents | 324ac367a4da |
children | d9b89874edf9 |
line wrap: on
line source
# -*- coding: utf-8 -*- """ vcs.exceptions ~~~~~~~~~~~~~~ Custom exceptions module :created_on: Apr 8, 2010 :copyright: (c) 2010-2011 by Marcin Kuzminski, Lukasz Balcerzak. """ class VCSError(Exception): pass class RepositoryError(VCSError): pass class EmptyRepositoryError(RepositoryError): pass class TagAlreadyExistError(RepositoryError): pass class TagDoesNotExistError(RepositoryError): pass class BranchAlreadyExistError(RepositoryError): pass class BranchDoesNotExistError(RepositoryError): pass class ChangesetError(RepositoryError): pass class ChangesetDoesNotExistError(ChangesetError): pass class CommitError(RepositoryError): pass class NothingChangedError(CommitError): pass class NodeError(VCSError): pass class RemovedFileNodeError(NodeError): pass class NodeAlreadyExistsError(CommitError): pass class NodeAlreadyChangedError(CommitError): pass class NodeDoesNotExistError(CommitError): pass class NodeNotChangedError(CommitError): pass class NodeAlreadyAddedError(CommitError): pass class NodeAlreadyRemovedError(CommitError): pass class ImproperArchiveTypeError(VCSError): pass class CommandError(VCSError): pass