Skip to main content

Class CommandException

The exception that is thrown if another exception occurs during a command execution.

Assembly: Discord.Net.Commands.dll​
View Source​
Declaration
public class CommandException : Exception, ISerializable, _Exception

Properties​

Command​

Gets the command that caused the exception.

View Source​
Declaration
public CommandInfo Command { get; }

Context​

Gets the command context of the exception.

View Source​
Declaration
public ICommandContext Context { get; }

Implements​

  • System.Runtime.Serialization.ISerializable
  • System.Runtime.InteropServices._Exception