mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-13 21:27:47 +01:00
e877f3e724
- feat(idm): Added monitoring - feat(nexus): Refactor GRPC base client - fix(nexus): Logging fixes - feat(hub): Extend logging - feat(hub): Extend logging 2 internal commit(s) GitOrigin-RevId: 01de4153dd9c0edc2e5954563733085249a4551c
26 lines
542 B
Python
26 lines
542 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 UnknownSchemaError(BaseError):
|
|
code = 'unknown_schema_error'
|