Class CommandException
A user-facing command error (bad arguments, invalid target, …). The dispatcher reports the message to the sender instead of logging it as a crash, so commands can validate input by throwing one of these.
public class CommandException : Exception, ISerializable
- Inheritance
-
CommandException
- Implements
- Derived
- Inherited Members
Constructors
CommandException(FormattedMessage)
public CommandException(FormattedMessage message)
Parameters
messageFormattedMessage
CommandException(string)
public CommandException(string message)
Parameters
messagestring
Properties
FormattedMessage
public FormattedMessage? FormattedMessage { get; }
Property Value
- FormattedMessage