Source code for git_wrapper.exceptions

[docs]class GitWrapperException(Exception): """Superclass for this library's exceptions""" pass
[docs]class DirtyRepositoryException(GitWrapperException): """Repository workspace is dirty.""" pass
[docs]class ReferenceNotFoundException(GitWrapperException): """Reference (commit, tag, branch, ...) doesn't exist.""" pass
[docs]class CheckoutException(GitWrapperException): """Error occurred while switching branch.""" pass
[docs]class RebaseException(GitWrapperException): """Error occurred during a rebase.""" pass
[docs]class AbortException(GitWrapperException): """Error occurred while attempting to abort a command.""" pass
[docs]class RevertException(GitWrapperException): """Error occurred while attempting to perform a revert.""" pass
[docs]class DescribeException(GitWrapperException): """Error occurred while running the describe command.""" pass
[docs]class CommitMessageMissingException(GitWrapperException): """Cannot create a commit without a commit message.""" pass
[docs]class ChangeNotAppliedException(GitWrapperException): """Error occurred while applying a changeset onto a repo.""" pass
[docs]class FileDoesntExistException(GitWrapperException): """File doesn't exist.""" pass
[docs]class RepoCreationException(GitWrapperException): """Error occurred while creating or cloning a repo.""" pass
[docs]class RemoteException(GitWrapperException): """Error occurred while doing an operation on a remote.""" pass
[docs]class ResetException(GitWrapperException): """Error occurred while resetting.""" pass
[docs]class TaggingException(GitWrapperException): """Error occurred while performing operation on tag.""" pass
[docs]class PushException(GitWrapperException): """Error occurred while pushing to remote.""" pass