mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-11 20:27:50 +01:00
fff80cd4e7
- fix(nexus): Preparing configs to be published - feat(nexus): Various fixes for opening left sources - fix(nexus): Fine-tune versions 1 internal commit(s) GitOrigin-RevId: 6c834cd3f4f5f18109a159a73503700dac63b0bb
16 lines
550 B
Python
16 lines
550 B
Python
from aiosumma.exceptions import (
|
|
InvalidSyntaxError,
|
|
QueryTimeoutError,
|
|
)
|
|
from grpc import StatusCode
|
|
from library.aiogrpctools.base import BaseService as LibraryBaseService
|
|
from nexus.meta_api.query_extensionner.grammar.parser import ParseError
|
|
|
|
|
|
class BaseService(LibraryBaseService):
|
|
error_mapping = {
|
|
InvalidSyntaxError: (StatusCode.INVALID_ARGUMENT, 'invalid_query_error'),
|
|
ParseError: (StatusCode.INVALID_ARGUMENT, 'invalid_query_error'),
|
|
QueryTimeoutError: (StatusCode.CANCELLED, 'cancelled_error'),
|
|
}
|