Use LoginCancelledManuallyException

This commit is contained in:
Him188 2020-04-30 11:50:35 +08:00
parent 01fc3f4c32
commit f10a1c64de

View File

@ -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, "取消登录")