using Chessistics.Engine.Events; namespace Chessistics.Engine.Commands; public class CommandRejectedException : Exception { public IWorldEvent RejectionEvent { get; } public CommandRejectedException(IWorldEvent rejectionEvent) : base(rejectionEvent.ToString()) { RejectionEvent = rejectionEvent; } }