2021-09-24 21:07:34 +03:00
|
|
|
from ._custom import (
|
|
|
|
ReadCancelledError,
|
|
|
|
TypeNotFoundError,
|
|
|
|
InvalidChecksumError,
|
|
|
|
InvalidBufferError,
|
|
|
|
SecurityError,
|
|
|
|
CdnFileTamperedError,
|
|
|
|
BadMessageError,
|
|
|
|
MultiError,
|
2022-02-16 14:54:41 +03:00
|
|
|
SignUpRequired,
|
2021-09-24 21:07:34 +03:00
|
|
|
)
|
|
|
|
from ._rpcbase import (
|
|
|
|
RpcError,
|
|
|
|
InvalidDcError,
|
|
|
|
BadRequestError,
|
|
|
|
UnauthorizedError,
|
|
|
|
ForbiddenError,
|
|
|
|
NotFoundError,
|
|
|
|
AuthKeyError,
|
|
|
|
FloodError,
|
|
|
|
ServerError,
|
|
|
|
BotTimeout,
|
|
|
|
TimedOutError,
|
|
|
|
_mk_error_type
|
2017-06-10 12:47:51 +03:00
|
|
|
)
|
|
|
|
|
2022-01-09 15:03:02 +03:00
|
|
|
# https://www.python.org/dev/peps/pep-0562/
|
|
|
|
def __getattr__(name):
|
|
|
|
return _mk_error_type(name=name)
|