Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. """Exceptions used throughout package"""
  2. from __future__ import absolute_import
  3. class PipError(Exception):
  4. """Base pip exception"""
  5. class InstallationError(PipError):
  6. """General exception during installation"""
  7. class UninstallationError(PipError):
  8. """General exception during uninstallation"""
  9. class DistributionNotFound(InstallationError):
  10. """Raised when a distribution cannot be found to satisfy a requirement"""
  11. class RequirementsFileParseError(InstallationError):
  12. """Raised when a general error occurs parsing a requirements file line."""
  13. class BestVersionAlreadyInstalled(PipError):
  14. """Raised when the most up-to-date version of a package is already
  15. installed."""
  16. class BadCommand(PipError):
  17. """Raised when virtualenv or a command is not found"""
  18. class CommandError(PipError):
  19. """Raised when there is an error in command-line arguments"""
  20. class PreviousBuildDirError(PipError):
  21. """Raised when there's a previous conflicting build directory"""
  22. class HashMismatch(InstallationError):
  23. """Distribution file hash values don't match."""
  24. class InvalidWheelFilename(InstallationError):
  25. """Invalid wheel filename."""
  26. class UnsupportedWheel(InstallationError):
  27. """Unsupported wheel."""