You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

exceptions.py 528 B

1234567891011121314151617181920212223
  1. # -*- coding: utf-8 -*-
  2. class FetcherError(Exception):
  3. r"""Base class for fetch related error."""
  4. class InvalidRepo(FetcherError):
  5. r"""The repo provided was somehow invalid."""
  6. class InvalidGitHost(FetcherError):
  7. r"""The git host provided was somehow invalid."""
  8. class GitPullError(FetcherError):
  9. r"""A git pull error occurred."""
  10. class GitCheckoutError(FetcherError):
  11. r"""A git checkout error occurred."""
  12. class InvalidProtocol(FetcherError):
  13. r"""The protocol provided was somehow invalid."""