mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-04 00:42:53 +01:00
43be16e4bc
- [nexus] Remove outdated protos - [nexus] Development - [nexus] Development - [nexus] Development - [nexus] Development - [nexus] Development - [nexus] Refactor views - [nexus] Update aiosumma - [nexus] Add tags - [nexus] Development - [nexus] Update repository - [nexus] Update repository - [nexus] Update dependencies - [nexus] Update dependencies - [nexus] Fixes for MetaAPI - [nexus] Support for new queries - [nexus] Adopt new versions of search - [nexus] Improving Nexus - [nexus] Various fixes - [nexus] Add profile - [nexus] Fixes for ingestion - [nexus] Refactorings and bugfixes - [idm] Add profile methods - [nexus] Fix stalled nexus-meta bugs - [nexus] Various bugfixes - [nexus] Restore IDM API functionality GitOrigin-RevId: a0842345a6dde5b321279ab5510a50c0def0e71a
30 lines
614 B
Python
30 lines
614 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 UnknownFileFormatError(BaseError):
|
|
level = logging.WARNING
|
|
code = 'unknown_file_format_error'
|
|
|
|
|
|
class UnknownIndexAliasError(BaseError):
|
|
code = 'unknown_index_alias_error'
|
|
|
|
|
|
class WidgetError(BaseError):
|
|
level = logging.WARNING
|
|
code = 'widget_error'
|
|
|
|
def __init__(self, text, buttons):
|
|
self.text = text
|
|
self.buttons = buttons
|