mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-05-13 17:34:03 +02:00
Move StopProcedureException into Phantom.Utils.Runtime project
This commit is contained in:
parent
59cf71e3e1
commit
8d3e4442d7
Agent/Phantom.Agent.Minecraft/Server
Common/Phantom.Common.Minecraft
Utils/Phantom.Utils.Runtime
@ -3,6 +3,7 @@ using Phantom.Common.Logging;
|
||||
using Phantom.Common.Minecraft;
|
||||
using Phantom.Utils.Cryptography;
|
||||
using Phantom.Utils.IO;
|
||||
using Phantom.Utils.Runtime;
|
||||
using Serilog;
|
||||
|
||||
namespace Phantom.Agent.Minecraft.Server;
|
||||
@ -175,10 +176,4 @@ sealed class MinecraftServerExecutableDownloader {
|
||||
streamCopier.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
private sealed class StopProcedureException : Exception {
|
||||
public static StopProcedureException Instance { get; } = new ();
|
||||
|
||||
private StopProcedureException() {}
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ using Phantom.Common.Data.Minecraft;
|
||||
using Phantom.Common.Logging;
|
||||
using Phantom.Utils.Cryptography;
|
||||
using Phantom.Utils.IO;
|
||||
using Phantom.Utils.Runtime;
|
||||
using Serilog;
|
||||
|
||||
namespace Phantom.Common.Minecraft;
|
||||
@ -197,10 +198,4 @@ public sealed class MinecraftVersions : IDisposable {
|
||||
|
||||
return valueElement;
|
||||
}
|
||||
|
||||
private sealed class StopProcedureException : Exception {
|
||||
public static StopProcedureException Instance { get; } = new ();
|
||||
|
||||
private StopProcedureException() {}
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Utils\Phantom.Utils.IO\Phantom.Utils.IO.csproj" />
|
||||
<ProjectReference Include="..\..\Utils\Phantom.Utils.Runtime\Phantom.Utils.Runtime.csproj" />
|
||||
<ProjectReference Include="..\Phantom.Common.Data\Phantom.Common.Data.csproj" />
|
||||
<ProjectReference Include="..\Phantom.Common.Logging\Phantom.Common.Logging.csproj" />
|
||||
</ItemGroup>
|
||||
|
10
Utils/Phantom.Utils.Runtime/StopProcedureException.cs
Normal file
10
Utils/Phantom.Utils.Runtime/StopProcedureException.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Phantom.Utils.Runtime;
|
||||
|
||||
/// <summary>
|
||||
/// Custom exception used to signal a procedure should stop. This exception should not be logged or propagated.
|
||||
/// </summary>
|
||||
public sealed class StopProcedureException : Exception {
|
||||
public static StopProcedureException Instance { get; } = new ();
|
||||
|
||||
private StopProcedureException() {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user