mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-11-30 06:52:55 +01:00
dd23846059
- [nexus] Switch bot - [bot] Added extra receivers functionality GitOrigin-RevId: 68fc32d3e79ff411758f54f435fe8680fc42dead
26 lines
551 B
Python
26 lines
551 B
Python
import logging
|
|
|
|
from izihawa_utils.exceptions import BaseError
|
|
|
|
|
|
class BannedUserError(BaseError):
|
|
level = logging.WARNING
|
|
code = 'banned_user_error'
|
|
|
|
def __init__(self, ban_timeout: int):
|
|
self.ban_timeout = ban_timeout
|
|
|
|
|
|
class MessageHasBeenDeletedError(BaseError):
|
|
level = logging.WARNING
|
|
code = 'message_has_been_deleted_error'
|
|
|
|
|
|
class UnknownFileFormatError(BaseError):
|
|
level = logging.WARNING
|
|
code = 'unknown_file_format_error'
|
|
|
|
|
|
class UnknownIndexAliasError(BaseError):
|
|
code = 'unknown_index_alias_error'
|