Class CommandNotFoundException
Thrown when the command service fails to find a command.
Inheritance
System.Object
System.Exception
CommandNotFoundException
Namespace: DisCatSharp.CommandsNext.Exceptions
Assembly: DisCatSharp.CommandsNext.dll
Syntax
public sealed class CommandNotFoundException : Exception, ISerializable
Constructors
| Improve this Doc View SourceCommandNotFoundException(String)
Creates a new CommandNotFoundException.
Declaration
public CommandNotFoundException(string command)
Parameters
Type | Name | Description |
---|---|---|
System.String | command | Name of the command that was not found. |
Properties
| Improve this Doc View SourceCommandName
Gets the name of the command that was not found.
Declaration
public string CommandName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceToString()
Returns a string representation of this CommandNotFoundException.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string representation. |
Overrides
System.Exception.ToString()