cai package¶
Entry Module for CAI.
- Copyright
Copyright (C) 2021-2021 cscs181
- License
AGPL-3.0 or later. See LICENSE for detail.
Subpackages¶
- cai.api package
- cai.client package
- Subpackages
- Submodules
- cai.client.client module
- cai.client.command module
- cai.client.event module
- cai.client.models module
- cai.client.packet module
- cai.connection package
- cai.pb package
- cai.settings package
- cai.storage package
- cai.utils package
Submodules¶
cai.exceptions module¶
Application Exceptions
This module is used to collect all application exceptions.
- Copyright
Copyright (C) 2021-2021 cscs181
- License
AGPL-3.0 or later. See LICENSE for detail.
- exception cai.exceptions.CaiException¶
基类:
ExceptionApplication Base Exception
- exception cai.exceptions.SsoServerException¶
基类:
cai.exceptions.CaiExceptionServer Related Exception
- exception cai.exceptions.ApiException(uin: Optional[int])¶
基类:
cai.exceptions.CaiExceptionBase Exception for API
- exception cai.exceptions.ClientNotAvailable(uin: Optional[int], reason: str)¶
基类:
cai.exceptions.ApiExceptionCannot get client
- exception cai.exceptions.ApiResponseError(uin: int, seq: int, ret_code: int, command_name: str)¶
基类:
cai.exceptions.ApiExceptionReceive a response with non zero return code.
- exception cai.exceptions.LoginException(uin: int, status: int, message: str = '')¶
基类:
cai.exceptions.ApiExceptionBase Exception for Login
- exception cai.exceptions.LoginSliderNeeded(uin: int, verify_url: str)¶
基类:
cai.exceptions.LoginExceptionNeed Slider Ticket when Login
- exception cai.exceptions.LoginCaptchaNeeded(uin: int, captcha_image: bytes, captcha_sign: bytes)¶
基类:
cai.exceptions.LoginExceptionNeed Captcha Image when Login
- exception cai.exceptions.LoginAccountFrozen(uin: int)¶
基类:
cai.exceptions.LoginExceptionAccount is already frozen
- exception cai.exceptions.LoginDeviceLocked(uin: int, sms_phone: Optional[str], verify_url: Optional[str], message: Optional[str])¶
基类:
cai.exceptions.LoginExceptionDevice lock checking is needed
- exception cai.exceptions.LoginSMSRequestError(uin: int)¶
基类:
cai.exceptions.LoginExceptionToo many sms verify request
- exception cai.exceptions.RegisterException(uin: int, status: int, message: str = '')¶
基类:
cai.exceptions.ApiExceptionException for Register
- exception cai.exceptions.BaseFriendListException(uin: Optional[int])¶
基类:
cai.exceptions.ApiExceptionBase Exception for Friend List
- exception cai.exceptions.FriendListException(uin: int, status: int, message: str = '')¶
基类:
cai.exceptions.BaseFriendListExceptionException for Friend List
- exception cai.exceptions.GroupListException(uin: int, status: int, message: str = '')¶
基类:
cai.exceptions.BaseFriendListExceptionException for Group List
- exception cai.exceptions.GroupMemberListException(uin: int, status: int, message: str = '')¶
基类:
cai.exceptions.BaseFriendListExceptionException for Group Member List