errors.py 628 B

12345678910111213141516171819202122232425262728293031323334
  1. # encoding=utf-8
  2. class TrackerError(Exception):
  3. pass
  4. class NoItemAvailable(TrackerError):
  5. pass
  6. class UserIsBanned(TrackerError):
  7. pass
  8. class InvalidClaim(TrackerError):
  9. pass
  10. class FullClaim(TrackerError):
  11. pass
  12. class UpdateClient(TrackerError):
  13. def __init__(self, version, client_version, current_version, current_client_version):
  14. super().__init__()
  15. self.version = version
  16. self.client_version = client_version
  17. self.current_version = current_version
  18. self.current_client_version = current_client_version
  19. class NoResourcesAvailable(TrackerError):
  20. pass