CommandNotFoundException.cs 555 B

123456789101112131415
  1. namespace PixiEditor.Models.Commands.Exceptions;
  2. [Serializable]
  3. public class CommandNotFoundException : Exception
  4. {
  5. public string CommandName { get; set; }
  6. public CommandNotFoundException(string name) : this(name, null) { }
  7. public CommandNotFoundException(string name, Exception inner) : base($"No command with the name '{name}' found", inner) { }
  8. protected CommandNotFoundException(
  9. System.Runtime.Serialization.SerializationInfo info,
  10. System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
  11. }