1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00
Artemis/src/Artemis.Core/Exceptions/ArtemisPluginLockException.cs
Robert a3cd32f6c4 Core - Added XML comments to all remaining public members/methods
Core - Refactored a lot of code for nullable reference types
2020-11-16 20:16:06 +01:00

21 lines
670 B
C#

using System;
namespace Artemis.Core
{
/// <summary>
/// An exception thrown when a plugin lock file error occurs
/// </summary>
public class ArtemisPluginLockException : Exception
{
internal ArtemisPluginLockException(Exception? innerException) : base(CreateExceptionMessage(innerException), innerException)
{
}
private static string CreateExceptionMessage(Exception? innerException)
{
return innerException != null
? "Found a lock file, skipping load, see inner exception for last known exception."
: "Found a lock file, skipping load.";
}
}
}