Chessistics/chessistics-engine/Commands/CommandRejectedException.cs

15 lines
335 B
C#
Raw Permalink Normal View History

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;
}
}