static string GetMessage(Commando command) { if (command.Action == CommandAction.Unidentified) { return("Command action could not be identified"); } else { return($"{command.Action} command did not have expected parameters"); } }
public static Responseo CreateResponse(Commando command, CommandDispatchResult result) => new Responseo(command.Source, command.Sequence, result);
public MalformedCommandException(Commando source) : base(GetMessage(source)) { }