CustomLoginFailedException |
非 mirai 实现的异常 abstract class CustomLoginFailedException : LoginFailedException |
ForceOfflineException |
当 Bot 被迫下线时抛出, 作为 Job.cancel 的 class ForceOfflineException : CancellationException |
LoginFailedException |
在 登录 失败时抛出, 可正常地中断登录过程. sealed class LoginFailedException : RuntimeException |
NoServerAvailableException |
无可用服务器 class NoServerAvailableException : LoginFailedException |
NoStandardInputForCaptchaException |
无标准输入或 Kotlin 不支持此输入. class NoStandardInputForCaptchaException : LoginFailedException |
UnsupportedSMSLoginException |
需要短信验证时抛出. mirai 目前还不支持短信验证. class UnsupportedSMSLoginException : LoginFailedException |
WrongPasswordException |
密码输入错误 class WrongPasswordException : LoginFailedException |
closeAndJoin |
suspend fun BotNetworkHandler.closeAndJoin(cause: Throwable? = null): Unit |