15 lines
335 B
C#
15 lines
335 B
C#
|
|
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;
|
||
|
|
}
|
||
|
|
}
|