CommandException
Thrown from a CommandAttribute handler, or a CommandConverters parser, to stop the command and send Exception.Message to the caller. Nothing is logged: it's an answer, not an error. Any other exception is logged with its stack trace, and the caller only hears that the command failed.
public sealed class CommandException : Exception
Namespace: DeadworksManaged.Api
Inherits / implements: Exception
Source: Commands/CommandException.cs#L8
Constructors
new CommandException()
Signature
public CommandException(string message)
public CommandException(string message, Exception inner)
Parameters
message: What the caller sees, e.g. "lapka isn't alive."inner: The exception that caused it, kept for debugging; the caller doesn't see it.
Source: Commands/CommandException.cs#L11, Commands/CommandException.cs#L15