mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-19 08:19:48 +08:00
fixed #1791
This commit is contained in:
@@ -220,6 +220,10 @@ public class PathExecutor
|
||||
|
||||
break;
|
||||
}
|
||||
catch (HandledException handledException)
|
||||
{
|
||||
break;
|
||||
}
|
||||
catch (NormalEndException normalEndException)
|
||||
{
|
||||
Logger.LogInformation(normalEndException.Message);
|
||||
@@ -1282,7 +1286,7 @@ public class PathExecutor
|
||||
{
|
||||
if (EndAction != null && EndAction(ra))
|
||||
{
|
||||
throw new NormalEndException("达成结束条件,结束地图追踪");
|
||||
throw new HandledException("达成结束条件,结束地图追踪");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace BetterGenshinImpact.GameTask.AutoGeniusInvokation.Exception; // TODO: change this namespace to BetterGenshinImpact.GameTask.Common.Exception
|
||||
|
||||
/// <summary>
|
||||
/// 无需再次抛出的异常类,通常用于在任务中捕获异常后处理完毕,不要再向上抛出异常。
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
public class HandledException(string message) : System.Exception(message)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user