sticker-captcha-bot/pyromod/utils/errors.py

17 lines
350 B
Python
Raw Permalink Normal View History

2022-07-02 11:44:57 +00:00
class TimeoutConversationError(Exception):
"""
Occurs when the conversation times out.
"""
2023-09-11 13:05:50 +00:00
2022-07-02 11:44:57 +00:00
def __init__(self):
2023-09-11 13:05:50 +00:00
super().__init__("Response read timed out")
2022-07-02 11:44:57 +00:00
class ListenerCanceled(Exception):
"""
Occurs when the listener is canceled.
"""
def __init__(self):
2023-09-11 13:05:50 +00:00
super().__init__("Listener was canceled")