update exceptions

This commit is contained in:
Mikhail 2023-06-26 02:58:59 +08:00
parent e0ec9c310f
commit b03c0480d1
2 changed files with 7 additions and 4 deletions

View File

@ -2,11 +2,14 @@
namespace DCFApixels.DragonECS
{
public static class EcsThrowHalper_ClassicThreads
namespace ClassicThreadsInternal
{
internal static void DoubleParallelIteration(this EcsThrowHalper _)
internal static class Throw
{
internal static void DoubleParallelIteration()
{
throw new InvalidOperationException("It is forbidden to start a parallel iteration before the last one is finished.");
}
}
}
}

View File

@ -1,7 +1,7 @@
using DCFApixels.DragonECS.ClassicThreadsInternal;
using System;
using System.Collections.Generic;
using System.Threading;
using static DCFApixels.DragonECS.EcsThrowHalper;
namespace DCFApixels.DragonECS
{