18 lines
454 B
C#
18 lines
454 B
C#
using System;
|
|
|
|
namespace Discord.Commands
|
|
{
|
|
public class CommandException : Exception
|
|
{
|
|
public CommandInfo Command { get; }
|
|
public ICommandContext Context { get; }
|
|
|
|
public CommandException(CommandInfo command, ICommandContext context, Exception ex)
|
|
: base($"Error occurred executing {command.GetLogText(context)}.", ex)
|
|
{
|
|
Command = command;
|
|
Context = context;
|
|
}
|
|
}
|
|
}
|