error.py 340 B

12345678910111213141516
  1. class ResourceDepletionError(Exception):
  2. def __init__(self):
  3. Exception.__init__(self)
  4. def __str__(self):
  5. return repr('The proxy source is exhausted')
  6. class PoolEmptyError(Exception):
  7. def __init__(self):
  8. Exception.__init__(self)
  9. def __str__(self):
  10. return repr('The proxy pool is empty')