Table of Contents

Class CommandException

Namespace
Shard.Modding.SDK.Command
Assembly
Shard.Modding.SDK.dll

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

message FormattedMessage

CommandException(string)

public CommandException(string message)

Parameters

message string

Properties

FormattedMessage

public FormattedMessage? FormattedMessage { get; }

Property Value

FormattedMessage