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