mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-09-27 08:06:19 +02:00
422959914c
- feat(nexus): Add vote to logging 1 internal commit(s) GitOrigin-RevId: 8686e431de9a7af6c6763fba2b50d62d6275667b
25 lines
514 B
Python
25 lines
514 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):
|
|
code = 'unknown_file_format_error'
|
|
|
|
|
|
class UnknownSchemaError(BaseError):
|
|
code = 'unknown_schema_error'
|