# -*- coding: utf-8 -*-
[文档]class FetcherError(Exception):
r"""Base class for fetch related error."""
[文档]class InvalidRepo(FetcherError):
r"""The repo provided was somehow invalid."""
[文档]class InvalidGitHost(FetcherError):
r"""The git host provided was somehow invalid."""
[文档]class GitPullError(FetcherError):
r"""A git pull error occurred."""
[文档]class GitCheckoutError(FetcherError):
r"""A git checkout error occurred."""
[文档]class InvalidProtocol(FetcherError):
r"""The protocol provided was somehow invalid."""