From 1e53f56212b0ae504292590bb0e90e783a9db73e Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Thu, 24 Dec 2020 01:14:27 +0800 Subject: [PATCH] Rename NotSupportedSliderCaptchaException to UnsupportedSliderCaptchaException --- .../src/commonMain/kotlin/network/LoginFailedException.kt | 2 +- .../src/commonMain/kotlin/network/QQAndroidBotNetworkHandler.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mirai-core-api/src/commonMain/kotlin/network/LoginFailedException.kt b/mirai-core-api/src/commonMain/kotlin/network/LoginFailedException.kt index 7d638159b..ba52bdcf6 100644 --- a/mirai-core-api/src/commonMain/kotlin/network/LoginFailedException.kt +++ b/mirai-core-api/src/commonMain/kotlin/network/LoginFailedException.kt @@ -64,7 +64,7 @@ public class UnsupportedSMSLoginException(message: String?) : LoginFailedExcepti /** * 无法完成滑块验证 */ -public class NotSupportedSliderCaptchaException(message: String?) : LoginFailedException(true, message) +public class UnsupportedSliderCaptchaException(message: String?) : LoginFailedException(true, message) /** * 非 mirai 实现的异常 diff --git a/mirai-core/src/commonMain/kotlin/network/QQAndroidBotNetworkHandler.kt b/mirai-core/src/commonMain/kotlin/network/QQAndroidBotNetworkHandler.kt index 924203f40..75e8f9213 100644 --- a/mirai-core/src/commonMain/kotlin/network/QQAndroidBotNetworkHandler.kt +++ b/mirai-core/src/commonMain/kotlin/network/QQAndroidBotNetworkHandler.kt @@ -194,7 +194,7 @@ internal class QQAndroidBotNetworkHandler(coroutineContext: CoroutineContext, bo if (step == 0) { return closeEverythingAndRelogin(host, port, cause, 1) } - throw NotSupportedSliderCaptchaException( + throw UnsupportedSliderCaptchaException( buildString { append("Mirai 无法完成滑块验证.") if (allowSlider) {