25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

52 lines
1.2 KiB

  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."""