예제 #1
0
        protected override void CatchActorTaskExecutionException(ActorTaskExecutionException exception)
        {
            AppendException(exception, _scoreFilePreffix);

            var monsterActorTaskSource = ServiceScope.ServiceProvider.GetRequiredService <MonsterBotActorTaskSource>();

            if (exception.ActorTaskSource != monsterActorTaskSource)
            {
                _botExceptionCount++;

                if (_botExceptionCount >= BOT_EXCEPTION_LIMIT)
                {
                    AppendFail(ServiceScope.ServiceProvider, _scoreFilePreffix);
                    throw exception;
                }
            }
            else
            {
                _envExceptionCount++;
                CheckEnvExceptions(_envExceptionCount, exception);
                Log($"[.] {exception.Message}");
            }
        }
예제 #2
0
 protected abstract void CatchActorTaskExecutionException(ActorTaskExecutionException exception);
예제 #3
0
 protected override void CatchActorTaskExecutionException(ActorTaskExecutionException exception)
 {
     Console.WriteLine(exception);
     throw exception;
 }
예제 #4
0
 protected override void CatchActorTaskExecutionException(ActorTaskExecutionException exception)
 {
     TestContext.Out.WriteLine(exception);
     throw exception;
 }