mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Use LoginCancelledManuallyException
This commit is contained in:
parent
01fc3f4c32
commit
f10a1c64de
@ -182,7 +182,7 @@ class GraphicalLoginSolver : LoginSolver() {
|
||||
while (code.isDirty || code.code.value == null) {
|
||||
delay(1000)
|
||||
if (code.code.value === VerificationCodeFragment.MAGIC_KEY) {
|
||||
throw WrongPasswordException("取消登录")
|
||||
throw LoginCancelledManuallyException()
|
||||
}
|
||||
}
|
||||
return code.code.value
|
||||
@ -197,3 +197,5 @@ class GraphicalLoginSolver : LoginSolver() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
class LoginCancelledManuallyException : CustomLoginFailedException(true, "取消登录")
|
Loading…
Reference in New Issue
Block a user