PaiGram/core/cookies/error.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
486 B
Python
Raw Normal View History

class CookieServiceError(Exception):
pass
class CookiesCachePoolExhausted(CookieServiceError):
2022-08-04 13:19:17 +00:00
def __init__(self):
super().__init__("Cookies cache pool is exhausted")
class CookiesNotFoundError(CookieServiceError):
def __init__(self, user_id):
super().__init__(f"{user_id} cookies not found")
class TooManyRequestPublicCookies(CookieServiceError):
def __init__(self, user_id):
super().__init__(f"{user_id} too many request public cookies")