You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CommandException.cs 454 B

1234567891011121314151617
  1. using System;
  2. namespace Discord.Commands
  3. {
  4. public class CommandException : Exception
  5. {
  6. public CommandInfo Command { get; }
  7. public ICommandContext Context { get; }
  8. public CommandException(CommandInfo command, ICommandContext context, Exception ex)
  9. : base($"Error occurred executing {command.GetLogText(context)}.", ex)
  10. {
  11. Command = command;
  12. Context = context;
  13. }
  14. }
  15. }