using System; namespace Artemis.Core { /// /// An exception thrown when a plugin lock file error occurs /// 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."; } } }