mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Refactor: More accurate exceptions and add friendly advices
This commit is contained in:
@@ -19,6 +19,7 @@ class CampaignNameError(Exception):
|
||||
|
||||
|
||||
class ScriptError(Exception):
|
||||
# This is likely to be a mistake of developers, but sometimes a random issue
|
||||
pass
|
||||
|
||||
|
||||
@@ -29,12 +30,20 @@ class ScriptEnd(Exception):
|
||||
class GameStuckError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class LogisticsRefreshBugHandler(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class GameTooManyClickError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class GameNotRunningError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class RequestHumanTakeover(Exception):
|
||||
# Request human takeover
|
||||
# Alas is unable to handle such error, probably because of wrong settings.
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user